[libvirt] [PATCH] Don't call VIR_ALLOC on def->uuid in parallels storage driver

Peter Krempa pkrempa at redhat.com
Tue Sep 3 16:18:55 UTC 2013


On 09/03/13 17:42, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> The 'uuid' field in virDomainDefPtr is not a pointer, it is a
> fixed length array. Calling VIR_ALLOC on it is thus wrong and
> leaks memory.
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
>  src/parallels/parallels_storage.c | 3 ---
>  1 file changed, 3 deletions(-)
> 

ACK.

Peter


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


More information about the libvir-list mailing list