[Rpm-maint] [rpm-software-management/rpm] Fix memleak in rpmfcApplyInternal() in standalone operation (eg rpmdeps) (#699)

Panu Matilainen notifications at github.com
Fri May 10 09:04:07 UTC 2019


When called in spec context, the package structs are properly freed
but in rpmdeps context, commit 49f2bb7d8fd91f2d8b22bf7128fd3defe4ed5434
only added a "dirty kludgery" to make it not blow up. This causes
the rpmds structures created in rpmfcApplyInternal() to leak memory.
Make freePackage() internally available and use it for freeing the
dummy struct too to fix.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/699

-- Commit Summary --

  * Fix memleak in rpmfcApplyInternal() in standalone operation (eg rpmdeps)

-- File Changes --

    M build/rpmbuild_internal.h (6)
    M build/rpmfc.c (4)
    M build/spec.c (2)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/699.patch
https://github.com/rpm-software-management/rpm/pull/699.diff

-- 
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/pull/699
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190510/1448e73d/attachment.html>


More information about the Rpm-maint mailing list