]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuDomainExtractTLSSubject: Refactor memory handling
authorPeter Krempa <pkrempa@redhat.com>
Thu, 1 Oct 2020 09:09:14 +0000 (11:09 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 5 Oct 2020 13:58:53 +0000 (15:58 +0200)
commita09cf33adf236bfc4024060df50bf1de67a8885f
treedcc0521c0d1d8589085355c6be9828dcb4065180
parent518be41aaa3ebaac5f2307f268d24dc1b40b6b5c
qemuDomainExtractTLSSubject: Refactor memory handling

Switch to automatic memory cleaning, use g_new0 for allocation and get
rid of the 'error' label.

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