]> git.ipfire.org Git - thirdparty/libvirt.git/commit
esx: use g_autofree for char* where it is trivially possible
authorLaine Stump <laine@redhat.com>
Fri, 5 Feb 2021 05:46:05 +0000 (00:46 -0500)
committerLaine Stump <laine@redhat.com>
Tue, 16 Feb 2021 18:50:04 +0000 (13:50 -0500)
commit213662813cd846d045be8857dc7b917d33a40989
treef675fc5628c0395c97cfca591e650e18bcbdc695
parent945132f842101535aee545413f3082a62a9a3453
esx: use g_autofree for char* where it is trivially possible

All of these strings are allocated once, freed once, and are never
returned out of the function where they are created, used, and are
freed.

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