[Rpm-maint] [rpm-software-management/rpm] Avoid Python reference leak in rpmfiles_archive (PR #3778)

Karolina Surma notifications at github.com
Thu Jun 12 16:26:03 UTC 2025


befeleme left a comment (rpm-software-management/rpm#3778)

> It seems like the [`rpmarchive_readto()`](https://github.com/rpm-software-management/rpm/blob/9f251cc41946b86bf8984202b63417927768acd1/python/rpmarchive-py.c#L128) and [`rpmarchive_writeto()`](https://github.com/rpm-software-management/rpm/blob/9f251cc41946b86bf8984202b63417927768acd1/python/rpmarchive-py.c#L154) functions have the same kind of leak. Would you be willing to fix those, too, while we're at it?

I committed the changes - they weren't tested. The ones in rpmfiles were visible via running Python tests with debug Python and additional options. There aren't tests of these functions from rpmarchive though.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3778#issuecomment-2967486929
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/3778/c2967486929 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250612/683c4fbe/attachment.htm>


More information about the Rpm-maint mailing list