aboutsummaryrefslogtreecommitdiff
path: root/hw/9pfs
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2011-08-08 12:19:51 +0530
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2011-09-09 14:46:00 +0530
commit10e72295bd33af848e96c2ceaad86299ef244da4 (patch)
tree24858766154c95714db91a02a422eea0cce6ded5 /hw/9pfs
parent25427ec1437b63e335a30293b58d47b601373223 (diff)
hw/9pfs: Fix memleaks in some 9p operation
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Diffstat (limited to 'hw/9pfs')
-rw-r--r--hw/9pfs/virtio-9p.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c
index 91e0957512..1f186a25fb 100644
--- a/hw/9pfs/virtio-9p.c
+++ b/hw/9pfs/virtio-9p.c
@@ -2696,6 +2696,7 @@ out_nofid:
err = offset;
err += pdu_marshal(pdu, offset, "b", status);
complete_pdu(s, pdu, err);
+ v9fs_string_free(&flock->client_id);
g_free(flock);
}
@@ -2736,6 +2737,7 @@ out:
put_fid(s, fidp);
out_nofid:
complete_pdu(s, pdu, err);
+ v9fs_string_free(&glock->client_id);
g_free(glock);
}