]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomainDiskSourceFormatInternal: Avoid leaking @childBuf
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 20 Feb 2018 11:22:26 +0000 (12:22 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 20 Feb 2018 12:06:22 +0000 (13:06 +0100)
commit4e657f2ae21c763c9cb001195e131a9d9c6db47c
tree3908bfb6215b06e8752e55c02d36624221842e9c
parenta4ace767cda9c26ee3f756deb1739f51d45d9527
virDomainDiskSourceFormatInternal: Avoid leaking @childBuf

If formatting of storage encryption or private data fails we must
jump to the error label instead of returning immediately
otherwise @attrBuf and @childBuf might be leaked.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/conf/domain_conf.c