[libvirt] [PATCH] node: Don't return invalid pointers

Ján Tomko jtomko at redhat.com
Fri May 26 11:50:24 UTC 2017


On Fri, May 26, 2017 at 01:39:24PM +0200, Peter Krempa wrote:
>Commit 4337bc57be introduced code that would in certain error paths
>unref the last reference of a pointer, but return it.
>
>Clear the pointers before returning them
>---
> src/node_device/node_device_driver.c | 8 ++++++--
> src/test/test_driver.c               | 4 +++-
> 2 files changed, 9 insertions(+), 3 deletions(-)
>

ACK

Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170526/21c11f50/attachment-0001.sig>


More information about the libvir-list mailing list