[libvirt] [PATCH] command: plug memory leak

Eric Blake eblake at redhat.com
Fri Dec 10 17:33:14 UTC 2010


On 12/10/2010 10:26 AM, Matthias Bolte wrote:
> 2010/12/10 Eric Blake <eblake at redhat.com>:
>> * src/util/command.c (virCommandFree): Free data from
>> virCommandSetInputBuffer.

> At first I wanted to complain that virCommandSetInputBuffer isn't
> documented to take ownership of the inbuf, then I saw that it's
> strdup'ed :)

Yeah, virCommandSetInputBuffer takes char*, virCommandSetOutputBuffer
takes char**; leaving subtly different lifetimes for the resulting strings.

> 
> ACK.

Thanks; pushed.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20101210/418088da/attachment-0001.sig>


More information about the libvir-list mailing list