From 8c1f25438eaa4b09815628f9a0434ae8abec3f53 Mon Sep 17 00:00:00 2001 From: ZhiPeng Lu Date: Wed, 19 Jul 2017 08:36:54 +0800 Subject: [PATCH] mpath: Fix memory leak in virStorageBackendCreateVols @map_device, allocated by virAsprintf in virStorageBackendCreateVols, was not freed and leaked. Signed-off-by: Zhipeng Lu --- src/storage/storage_backend_mpath.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.47.2