From: Aneesh Kumar K.V Date: Mon, 8 Aug 2011 06:49:51 +0000 (+0530) Subject: hw/9pfs: Fix memleaks in some 9p operation X-Git-Tag: v1.0-rc0~240^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10e72295bd33af848e96c2ceaad86299ef244da4;p=thirdparty%2Fqemu.git hw/9pfs: Fix memleaks in some 9p operation Signed-off-by: Aneesh Kumar K.V --- diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 91e09575123..1f186a25fb8 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); }