]> git.ipfire.org Git - thirdparty/libvirt.git/commit
esx: replace some VIR_FREE with g_clear_pointer(x, g_free)
authorLaine Stump <laine@redhat.com>
Fri, 12 Feb 2021 21:39:38 +0000 (16:39 -0500)
committerLaine Stump <laine@redhat.com>
Tue, 16 Feb 2021 18:50:05 +0000 (13:50 -0500)
commitfa3d8a609a3b7bb961416d0bab89e5a4836ba41c
treefbc6a4eb492c1531575396e433ead987312d355b
parentb10402ece134e9d467c578caced3cde8b6ee6408
esx: replace some VIR_FREE with g_clear_pointer(x, g_free)

These are all cases when 1) the pointer is passed by reference from
the caller (ie.e. **) and expects it to be NULL on return if there is
an error, or 2) the variable holding the pointer is being checked or
re-used in the same function, but not right away.

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