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

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



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


ACK

Michal


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