[Rpm-maint] [rpm-software-management/rpm] fix couple of memory leaks in rpmbuild (#292)

Igor Gnatenko notifications at github.com
Sun Jul 30 14:21:16 UTC 2017


```
==9077== 336 (40 direct, 296 indirect) bytes in 1 blocks are definitely lost in loss record 32 of 37
==9077==    at 0x4C31C15: realloc (vg_replace_malloc.c:785)
==9077==    by 0x57575B7: rrealloc (rpmmalloc.c:65)
==9077==    by 0x574FEE2: argvAdd (argv.c:138)
==9077==    by 0x4E45C8E: addNewIDSymlink (files.c:1705)
==9077==    by 0x4E4B946: generateBuildIDs (files.c:1969)
==9077==    by 0x4E4B946: processPackageFiles (files.c:2542)
==9077==    by 0x4E4B946: processBinaryFiles (files.c:3076)
==9077==    by 0x4E44180: buildSpec (build.c:262)
==9077==    by 0x402E6E: buildForTarget.constprop.1 (rpmbuild.c:517)
==9077==    by 0x4030CA: build.constprop.0 (rpmbuild.c:550)
==9077==    by 0x4020AA: main (rpmbuild.c:697)
==9077==
==9077== 487 (48 direct, 439 indirect) bytes in 1 blocks are definitely lost in loss record 33 of 37
==9077==    at 0x4C31C15: realloc (vg_replace_malloc.c:785)
==9077==    by 0x57575B7: rrealloc (rpmmalloc.c:65)
==9077==    by 0x574FEE2: argvAdd (argv.c:138)
==9077==    by 0x4E45C8E: addNewIDSymlink (files.c:1705)
==9077==    by 0x4E4BB74: generateBuildIDs (files.c:2015)
==9077==    by 0x4E4BB74: processPackageFiles (files.c:2542)
==9077==    by 0x4E4BB74: processBinaryFiles (files.c:3076)
==9077==    by 0x4E44180: buildSpec (build.c:262)
==9077==    by 0x402E6E: buildForTarget.constprop.1 (rpmbuild.c:517)
==9077==    by 0x4030CA: build.constprop.0 (rpmbuild.c:550)
==9077==    by 0x4020AA: main (rpmbuild.c:697)
==9077==
==9077== 149,066 (144 direct, 148,922 indirect) bytes in 2 blocks are definitely lost in loss record 37 of 37
==9077==    at 0x4C31A1E: calloc (vg_replace_malloc.c:711)
==9077==    by 0x575757E: rcalloc (rpmmalloc.c:55)
==9077==    by 0x509FCEE: initIter (rpmfi.c:1684)
==9077==    by 0x4E4A611: filterDebuginfoPackage (files.c:2831)
==9077==    by 0x4E4A611: processBinaryFiles (files.c:3080)
==9077==    by 0x4E44180: buildSpec (build.c:262)
==9077==    by 0x402E6E: buildForTarget.constprop.1 (rpmbuild.c:517)
==9077==    by 0x4030CA: build.constprop.0 (rpmbuild.c:550)
==9077==    by 0x4020AA: main (rpmbuild.c:697)
```

Signed-off-by: Igor Gnatenko <i.gnatenko.brain at gmail.com>
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * fix couple of memory leaks in rpmbuild

-- File Changes --

    M build/files.c (3)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/292.patch
https://github.com/rpm-software-management/rpm/pull/292.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/292
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170730/eff9b13d/attachment.html>


More information about the Rpm-maint mailing list