]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/9pfs: Fix memleaks in some 9p operation
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Mon, 8 Aug 2011 06:49:51 +0000 (12:19 +0530)
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Fri, 9 Sep 2011 09:16:00 +0000 (14:46 +0530)
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
hw/9pfs/virtio-9p.c

index 91e095751235b8904c7a0a95ecee0ba110f20fec..1f186a25fb8c8e8241be6299cc46bbde27a05ef3 100644 (file)
@@ -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);
 }