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

Re: [libvirt] [PATCH 3/6] Fix possible memory leak in util/virxml.c




On 01/13/2014 11:12 AM, Pavel Hrdina wrote:
> A "xmlstr" string may not be assigned into a "doc" pointer and it
> could cause memory leak. To fix it if the "doc" pointer is NULL and
> the "xmlstr" string is not assigned we should free it.
> 
> This has been found by coverity.
> 
> Signed-off-by: Pavel Hrdina <phrdina redhat com>
> ---
>  src/util/virxml.c | 2 ++
>  1 file changed, 2 insertions(+)
> 

ACK

John


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