mpath: Fix memory leak in virStorageBackendCreateVols

@map_device, allocated by virAsprintf in virStorageBackendCreateVols,
was not freed and leaked.

Signed-off-by: Zhipeng Lu <lu.zhipeng@zte.com.cn>
This commit is contained in:
ZhiPeng Lu 2017-07-19 08:36:54 +08:00 committed by Michal Privoznik
parent 0c02071b56
commit 8c1f25438e

View File

@ -200,6 +200,7 @@ virStorageBackendCreateVols(virStoragePoolObjPtr pool,
retval = 0;
out:
VIR_FREE(map_device);
return retval;
}