Bug 1536765

Summary: Libguestfs Perl bindings can leak a small amount of memory on error
Product: [Community] Virtualization Tools Reporter: Demi Marie Obenour <demiobenour>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: ptoscano, rbalakri
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-22 17:57:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Demi Marie Obenour 2018-01-20 22:18:54 UTC
Description of problem:

The libguestfs Perl bindings can leak a small amount of memory, if there is a missing entry in an array.  Specifically, `croak()` is called, which leaks a pointer allocated with `malloc()`.

Comment 1 Richard W.M. Jones 2018-01-22 17:06:44 UTC
Patch posted:
https://www.redhat.com/archives/libguestfs/2018-January/msg00183.html

Comment 2 Richard W.M. Jones 2018-01-22 17:57:35 UTC
Fixed in >= 1.37.36.