]> xenbits.xensource.com Git - libvirt.git/commit
virLXCProcessSetupNamespaceName: Fix potential uninitialized free of 'path'
authorPeter Krempa <pkrempa@redhat.com>
Thu, 5 Mar 2020 08:25:35 +0000 (09:25 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 5 Mar 2020 15:21:47 +0000 (16:21 +0100)
commit140c756f5ca598b5640d3a5342e8914e7f88bc9b
tree62f21bfeab20f3c87d9ff0e38f331f587d43adf1
parent78ead2529bfd3856a1d0a3e8968f80d43142d0cf
virLXCProcessSetupNamespaceName: Fix potential uninitialized free of 'path'

'path' could be accessed uninitialized. Fix it by using g_autofree which
also mandates initialization.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/lxc/lxc_process.c