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
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to