summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/parseScript.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/build/parseScript.c b/build/parseScript.c
index 03634c0bd..64325e07e 100644
--- a/build/parseScript.c
+++ b/build/parseScript.c
@@ -284,13 +284,11 @@ int parseScript(Spec spec, int parsePart)
p = getStringBuf(sb);
if (!strcmp(progArgv[0], "<lua>")) {
- rpmlua lua = rpmluaNew();
+ rpmlua lua = NULL; /* Global state. */
if (rpmluaCheckScript(lua, p, partname) != RPMRC_OK) {
- rpmluaFree(lua);
rc = RPMERR_BADSPEC;
goto exit;
}
- rpmluaFree(lua);
(void) rpmlibNeedsFeature(pkg->header,
"BuiltinLuaScripts", "4.2.2-1");
} else if (progArgv[0][0] == '<') {