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:
parent
0c02071b56
commit
8c1f25438e
@ -200,6 +200,7 @@ virStorageBackendCreateVols(virStoragePoolObjPtr pool,
|
|||||||
|
|
||||||
retval = 0;
|
retval = 0;
|
||||||
out:
|
out:
|
||||||
|
VIR_FREE(map_device);
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user