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:
Panu Matilainen 2021-04-26 11:27:34 +03:00
parent 1957cc8fd2
commit efad86d001
1 changed files with 0 additions and 2 deletions

View File

@ -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);