diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2011-08-08 12:19:51 +0530 |
---|---|---|
committer | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2011-09-09 14:46:00 +0530 |
commit | 10e72295bd33af848e96c2ceaad86299ef244da4 (patch) | |
tree | 24858766154c95714db91a02a422eea0cce6ded5 | |
parent | 25427ec1437b63e335a30293b58d47b601373223 (diff) | |
download | hqemu-10e72295bd33af848e96c2ceaad86299ef244da4.zip hqemu-10e72295bd33af848e96c2ceaad86299ef244da4.tar.gz |
hw/9pfs: Fix memleaks in some 9p operation
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
-rw-r--r-- | hw/9pfs/virtio-9p.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 91e0957..1f186a2 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); } |