mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
util: fix memleak in virStorageSourceClear
snapshot and configFile are not freed, free them. Signed-off-by: Zhang Bo <oscar.zhangbo@huawei.com>
This commit is contained in:
parent
9dc57ce2c4
commit
ab7cd11e0b
@ -2038,6 +2038,8 @@ virStorageSourceClear(virStorageSourcePtr def)
|
||||
|
||||
VIR_FREE(def->path);
|
||||
VIR_FREE(def->volume);
|
||||
VIR_FREE(def->snapshot);
|
||||
VIR_FREE(def->configFile);
|
||||
virStorageSourcePoolDefFree(def->srcpool);
|
||||
VIR_FREE(def->driverName);
|
||||
virBitmapFree(def->features);
|
||||
|
Loading…
Reference in New Issue
Block a user