]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: clean up memory containing secrets before freeing
authorjiangjiacheng <jiangjiacheng@huawei.com>
Tue, 6 Sep 2022 13:48:29 +0000 (21:48 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 7 Sep 2022 06:39:16 +0000 (08:39 +0200)
commit51f8130d78fde3201b49c02b7095ff918b6e658a
tree12a05eb755fee6fdb526bcf4759fa3532c0ac6f7
parent2ce45ddea373e18fae27aa1b87cc7db7b2390f4d
conf: clean up memory containing secrets before freeing

The password may not be valid in the error branch, but for
higher security, it's better to clean up the memory before
freeing it.

Signed-off-by: jiangjiacheng <jiangjiacheng@huawei.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
src/conf/domain_conf.c