[libvirt] [PATCH 2/3] remote: Resolve resource leak
Michal Privoznik
mprivozn at redhat.com
Tue Dec 18 13:40:41 UTC 2018
On 12/17/18 3:55 PM, John Ferlan wrote:
> Using a combination of VIR_ALLOC and VIR_STRDUP into a local
> variable and then jumping to error on the VIR_STRDUP before
> assiging it into the @data would cause a memory leak. Let's
> just avoid that by assiging directly into @data.
>
> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
> src/remote/remote_daemon_dispatch.c | 17 ++++++-----------
> 1 file changed, 6 insertions(+), 11 deletions(-)
ACK
Michal
More information about the libvir-list
mailing list