Re: [Libguestfs] python: Avoid leaking py_array and py_args in event callbacks

2023-02-20 Thread Laszlo Ersek
On 2/17/23 18:39, Richard W.M. Jones wrote: > Version 1 was here: > > https://listman.redhat.com/archives/libguestfs/2023-February/030732.html > > Following Eric's suggestion here: > > https://listman.redhat.com/archives/libguestfs/2023-February/030746.html > > let's decrement the reference

Re: [Libguestfs] python: Avoid leaking py_array and py_args in event callbacks

2023-02-17 Thread Richard W.M. Jones
Sorry, ignore this, I found yet another problem. Will post v3. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-

[Libguestfs] python: Avoid leaking py_array and py_args in event callbacks

2023-02-17 Thread Richard W.M. Jones
Version 1 was here: https://listman.redhat.com/archives/libguestfs/2023-February/030732.html Following Eric's suggestion here: https://listman.redhat.com/archives/libguestfs/2023-February/030746.html let's decrement the reference of py_array right after adding it to the args. (This works e