SOURCES (rpm-4_4_9): rpm-lualeak.patch (NEW) - try to fix lua leak
glen
glen at pld-linux.org
Mon Mar 17 20:25:55 CET 2008
Author: glen Date: Mon Mar 17 19:25:55 2008 GMT
Module: SOURCES Tag: rpm-4_4_9
---- Log message:
- try to fix lua leak
---- Files affected:
SOURCES:
rpm-lualeak.patch (NONE -> 1.1.2.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/rpm-lualeak.patch
diff -u /dev/null SOURCES/rpm-lualeak.patch:1.1.2.1
--- /dev/null Mon Mar 17 20:25:55 2008
+++ SOURCES/rpm-lualeak.patch Mon Mar 17 20:25:50 2008
@@ -0,0 +1,21 @@
+--- rpm-4.4.9/rpmio/rpmlua.c 2007-02-03 21:23:54.000000000 +0200
++++ rpm-4_5/rpmio/rpmlua.c 2007-06-18 20:39:08.000000000 +0300
+@@ -80,8 +80,8 @@
+ { const char * _lua_path = rpmGetPath(_LUADOTDIR, "/lua/?.lua", NULL);
+ if (_lua_path != NULL) {
+ lua_pushliteral(L, "LUA_PATH");
+ lua_pushstring(L, _lua_path);
+- free(_lua_path);
++ free(_lua_path); _lua_path = NULL;
+ }
+ }
+ lua_rawset(L, LUA_GLOBALSINDEX);
+@@ -94,7 +94,7 @@
+ struct stat st;
+ if (Stat(_lua_init, &st) != -1)
+ (void)rpmluaRunScriptFile(lua, _lua_init);
+- free(_lua_init);
++ free(_lua_init); _lua_init = NULL;
+ }
+ }
+ #undef _LUADOTDIR
================================================================
More information about the pld-cvs-commit
mailing list