提交 8c1f2543 编写于 作者: Z ZhiPeng Lu 提交者: Michal Privoznik

mpath: Fix memory leak in virStorageBackendCreateVols

@map_device, allocated by virAsprintf in virStorageBackendCreateVols,
was not freed and leaked.
Signed-off-by: NZhipeng Lu <lu.zhipeng@zte.com.cn>
上级 0c02071b
......@@ -200,6 +200,7 @@ virStorageBackendCreateVols(virStoragePoolObjPtr pool,
retval = 0;
out:
VIR_FREE(map_device);
return retval;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册