[Rpm-maint] [rpm-software-management/rpm] Only destroy lua tables if there are no BASpecs left (#366)

Nikola Forró notifications at github.com
Tue Dec 5 10:51:57 UTC 2017


Lua tables *sources* and *patches* are created in `newSpec()` and destroyed in `rpmSpecFree()`.

But in case *BuildArch* processing takes place in `parseSpec()`, the function returns successfully but the tables are already destroyed by [`rpmSpecFree()`](https://github.com/rpm-software-management/rpm/blob/34c2ba3c6a80a778cdf2e42a9193b3264e08e1b3/build/parseSpec.c#L894) that has been called for the original `spec`.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Only destroy lua tables if there are no BASpecs left

-- File Changes --

    M build/spec.c (3)

-- Patch Links --

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


More information about the Rpm-maint mailing list