Fix memory leak regression from Lua sources/patches
A leftover ifdef from commit 7f3fdf6868
prevents Lua sources/patches tables from getting properly freed.
This commit is contained in:
parent
1957cc8fd2
commit
efad86d001
|
@ -296,12 +296,10 @@ rpmSpec rpmSpecFree(rpmSpec spec)
|
||||||
}
|
}
|
||||||
spec->BANames = _free(spec->BANames);
|
spec->BANames = _free(spec->BANames);
|
||||||
|
|
||||||
#ifdef WITH_LUA
|
|
||||||
// only destroy lua tables if there are no BASpecs left
|
// only destroy lua tables if there are no BASpecs left
|
||||||
if (spec->recursing || spec->BACount == 0) {
|
if (spec->recursing || spec->BACount == 0) {
|
||||||
spec->lua = specLuaFini(spec);
|
spec->lua = specLuaFini(spec);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
spec->sources = freeSources(spec->sources);
|
spec->sources = freeSources(spec->sources);
|
||||||
spec->packages = freePackages(spec->packages);
|
spec->packages = freePackages(spec->packages);
|
||||||
|
|
Loading…
Reference in New Issue