[Rpm-maint] [rpm-software-management/rpm] Rust bindings for rpmlib (#429)
Jeff Johnson
notifications at github.com
Fri Apr 13 19:10:23 UTC 2018
Re using rust iterator S w ref counting
The match iterator does a ref++ followed by a ref-- at the end of an iteration which guarantees that the header and MINMEM tag data exist for each iteration.
Do an additional ref++ using *Link() if you want to make a header persistent for further processing outside of an iteration (but don't forget the ref-- using *Free() or you will have a huge memory leak ;-)
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/429#issuecomment-381234557
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180413/9007eaea/attachment.html>
More information about the Rpm-maint
mailing list