> I scanned through the patch, and didn't see any instances where we are
> calling virCheckFlags after non-trivial work.  It is something to be
> aware of when using the macro in the future, since:
> 
> {
>     ptr *foo = somethingThatMallocs();
>     virCheckFlags(0, NULL);
> 
> would be a memory leak, masked because the return is hidden inside the
> virCheckFlags macro.

Yes. I added a note to macro documentation to make this issue more visible.

> ACK.

And pushed, thanks.

Jirka

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to