]> xenbits.xensource.com Git - libvirt.git/commit
virStorageBackendSheepdogAddVolume: Clean up memory handling
authorPeter Krempa <pkrempa@redhat.com>
Fri, 5 Feb 2021 16:03:14 +0000 (17:03 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 11 Feb 2021 16:05:33 +0000 (17:05 +0100)
commit81030c44e0bcd78f15426019f01ce08a002c6134
treee52f1ebdb35112968b4b99c58f4416602af47d80
parent4661ea35785b3bf6beac4e52550bbc9eff9fd34d
virStorageBackendSheepdogAddVolume: Clean up memory handling

'cells' can be pushed into the loop removing the need for manual
cleanup, the check whether 'line' is NULL inside of the loop is always
false since the loop checks it right before and 'line' variable is
unnecessary.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/storage/storage_backend_sheepdog.c