]> xenbits.xensource.com Git - libvirt.git/commit
qemu: replace VIR_FREE with g_free in qemuFirmware*FreeContent()
authorLaine Stump <laine@redhat.com>
Thu, 4 Feb 2021 02:07:20 +0000 (21:07 -0500)
committerLaine Stump <laine@redhat.com>
Fri, 5 Feb 2021 05:22:09 +0000 (00:22 -0500)
commit5fb0c789c383357de16b52aefbb7c62c9409aae2
tree2d5f94e499dd9db2d57c2be8d7c6cc4c2818351b
parente7942f65c95f4d339e8d42dcd5df30ffc0d0837c
qemu: replace VIR_FREE with g_free in qemuFirmware*FreeContent()

These functions are all only called as a part of qemuFirmwareFree(),
which frees the qemuFirmware object before return, so we can be sure
none of the pointers is referenced after freeing (and thus there is no
need to clear any of them).

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
src/qemu/qemu_firmware.c