]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- more _free() compatible, however no luck still
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 17 Mar 2008 20:12:13 +0000 (20:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-lualeak.patch -> 1.1.2.2

rpm-lualeak.patch

index e44f63d7a2f139a15bb3e36afcb5e8275306e298..bc2c1b9b6fcd74bf76ee1791e8f4692787a097c5 100644 (file)
@@ -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
This page took 0.83376 seconds and 4 git commands to generate.