From: ZhiPeng Lu Date: Wed, 19 Jul 2017 00:36:54 +0000 (+0800) Subject: mpath: Fix memory leak in virStorageBackendCreateVols X-Git-Tag: v3.6.0-rc1~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c1f25438eaa4b09815628f9a0434ae8abec3f53;p=thirdparty%2Flibvirt.git mpath: Fix memory leak in virStorageBackendCreateVols @map_device, allocated by virAsprintf in virStorageBackendCreateVols, was not freed and leaked. Signed-off-by: Zhipeng Lu --- diff --git a/src/storage/storage_backend_mpath.c b/src/storage/storage_backend_mpath.c index 606b3997fe..434a477e70 100644 --- a/src/storage/storage_backend_mpath.c +++ b/src/storage/storage_backend_mpath.c @@ -200,6 +200,7 @@ virStorageBackendCreateVols(virStoragePoolObjPtr pool, retval = 0; out: + VIR_FREE(map_device); return retval; }