Re: [PATCH 2/3] remote: Resolve resource leak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> ---
>  src/remote/remote_daemon_dispatch.c | 17 ++++++-----------
>  1 file changed, 6 insertions(+), 11 deletions(-)


ACK

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux