SOURCES (rpm-4_4_9): rpm-lualeak.patch - more _free() compatible, ...

glen glen at pld-linux.org
Mon Mar 17 21:12:18 CET 2008


Author: glen                         Date: Mon Mar 17 20:12:18 2008 GMT
Module: SOURCES                       Tag: rpm-4_4_9
---- Log message:
- more _free() compatible, however no luck still

---- Files affected:
SOURCES:
   rpm-lualeak.patch (1.1.2.1 -> 1.1.2.2) 

---- Diffs:

================================================================
Index: SOURCES/rpm-lualeak.patch
diff -u SOURCES/rpm-lualeak.patch:1.1.2.1 SOURCES/rpm-lualeak.patch:1.1.2.2
--- SOURCES/rpm-lualeak.patch:1.1.2.1	Mon Mar 17 20:25:50 2008
+++ SOURCES/rpm-lualeak.patch	Mon Mar 17 21:12:13 2008
@@ -6,7 +6,7 @@
  	    lua_pushliteral(L, "LUA_PATH");
  	    lua_pushstring(L, _lua_path);
 -	    free(_lua_path);
-+	    free(_lua_path); _lua_path = NULL;
++	    if (_lua_path) free(_lua_path); _lua_path = NULL;
  	}
      }
      lua_rawset(L, LUA_GLOBALSINDEX);
@@ -15,7 +15,7 @@
  	    if (Stat(_lua_init, &st) != -1)
  		(void)rpmluaRunScriptFile(lua, _lua_init);
 -	    free(_lua_init);
-+	    free(_lua_init); _lua_init = NULL;
++	    if (_lua_init) free(_lua_init); _lua_init = NULL;
  	}
      }
  #undef	_LUADOTDIR
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/rpm-lualeak.patch?r1=1.1.2.1&r2=1.1.2.2&f=u



More information about the pld-cvs-commit mailing list