diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2021-04-26 11:27:34 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2021-04-26 11:35:30 +0300 |
commit | efad86d00150c75f0e50d0a57cdc3f0655a4855f (patch) | |
tree | 511e9b819a11451f2a64ee47c980e0c210873401 | |
parent | 1957cc8fd2c2cf3e0acb0bf4092cca1406c882a3 (diff) | |
download | rpm-efad86d00150c75f0e50d0a57cdc3f0655a4855f.tar.gz |
Fix memory leak regression from Lua sources/patchesrpm-4.17.0-alpha
A leftover ifdef from commit 7f3fdf6868d72fbdef3386345ff39b3744fa4b14
prevents Lua sources/patches tables from getting properly freed.
-rw-r--r-- | build/spec.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/build/spec.c b/build/spec.c index 234cbcb20..365ce6d32 100644 --- a/build/spec.c +++ b/build/spec.c @@ -296,12 +296,10 @@ rpmSpec rpmSpecFree(rpmSpec spec) } spec->BANames = _free(spec->BANames); -#ifdef WITH_LUA // only destroy lua tables if there are no BASpecs left if (spec->recursing || spec->BACount == 0) { spec->lua = specLuaFini(spec); } -#endif spec->sources = freeSources(spec->sources); spec->packages = freePackages(spec->packages); |