]> xenbits.xensource.com Git - libvirt.git/commit
esx: replace VIR_FREE with g_free in any ESX_VI__TEMPLATE__FREE
authorLaine Stump <laine@redhat.com>
Fri, 5 Feb 2021 05:46:24 +0000 (00:46 -0500)
committerLaine Stump <laine@redhat.com>
Fri, 12 Feb 2021 17:10:38 +0000 (12:10 -0500)
commite5339e38ca29d3e1a788d19b2716ae6a49d00b2e
tree5214a27085275de61fad4eab7ebc40457d7a061f
parent859f7e2072b4109a05e7c491edf2b1c0066c3b23
esx: replace VIR_FREE with g_free in any ESX_VI__TEMPLATE__FREE

Invocations of the macro ESX_VI__TEMPLATE__FREE() will free the main
object (referenced as "item") that's pointing to all the things being
VIR_FREEd in the body, so it is safe for all the pointers in item to
just be g_freed rather that VIR_FREEd.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/esx/esx_vi.c
src/esx/esx_vi_types.c