[libvirt] [PATCH 03/10] Fix crash if OOM occurs when creating virConnectPtr

Peter Krempa pkrempa at redhat.com
Mon Sep 23 16:48:18 UTC 2013


On 09/23/13 15:23, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> If a OOM error occurs in virGetConnect, this may cause the
> virConnectDispose method to de-reference a NULL pointer,
> since the close callback will not have been initialized.
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
>  src/datatypes.c | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 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/20130923/9f367dc2/attachment-0001.sig>


More information about the libvir-list mailing list