From 10e72295bd33af848e96c2ceaad86299ef244da4 Mon Sep 17 00:00:00 2001 From: "Aneesh Kumar K.V" Date: Mon, 8 Aug 2011 12:19:51 +0530 Subject: hw/9pfs: Fix memleaks in some 9p operation Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hw/9pfs/virtio-9p.c') 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); } -- cgit v1.2.1