[Rpm-maint] [rpm-software-management/rpm] Rust bindings for rpmlib (#429)

Jeff Johnson notifications at github.com
Fri Apr 13 19:03:41 UTC 2018


Re: ref counting.

Yes, an increment is exactly a *Link() call, and a decrement (and possible delayed/lazy de-allocation) is a * Free() call.

There is also a *Unlink() method that is strictly a decrement w/o a deallocation, but that is really only useful when debugging, or when some snarly ref counting bug necessitates a Big Hammer Hack: all usual cases should use *Free() instead.

-- 
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-381232511
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180413/023a865e/attachment-0001.html>


More information about the Rpm-maint mailing list