summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-10-11 12:41:25 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-10-11 12:41:25 +0000
commitc8e5c978d6003a7b392602d9f960b4fe038d234e (patch)
tree6a590f480b136b43401c64b65d13ce81227be679
parentc4c5bc816e974133dff03be265ddd3033833571c (diff)
luaTeX: Free two malloc()ed strings
git-svn-id: svn://tug.org/texlive/trunk@27943 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/web2c/luatexdir/ChangeLog4
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/luainit.w2
2 files changed, 6 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/luatexdir/ChangeLog b/Build/source/texk/web2c/luatexdir/ChangeLog
index d5d6f653a57..0178a9b4d3d 100644
--- a/Build/source/texk/web2c/luatexdir/ChangeLog
+++ b/Build/source/texk/web2c/luatexdir/ChangeLog
@@ -1,3 +1,7 @@
+2012-10-11 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * lua/luainit.w (lua_initialize): Free two malloc()ed strings.
+
2012-10-10 Akira Kakuto <kakuto@fuk.kinidai.ac.jp>
* luatex.c: Modify determination of fullpath for restricted shell
diff --git a/Build/source/texk/web2c/luatexdir/lua/luainit.w b/Build/source/texk/web2c/luatexdir/lua/luainit.w
index 4acd6e411d7..11b2883b113 100644
--- a/Build/source/texk/web2c/luatexdir/lua/luainit.w
+++ b/Build/source/texk/web2c/luatexdir/lua/luainit.w
@@ -911,6 +911,7 @@ void lua_initialize(int ac, char **av)
shellenabledp = 1;
restrictedshell = 1;
}
+ free(v1);
}
/* If shell escapes are restricted, get allowed cmds from cnf. */
if (shellenabledp && restrictedshell == 1) {
@@ -918,6 +919,7 @@ void lua_initialize(int ac, char **av)
get_lua_string("texconfig", "shell_escape_commands", &v1);
if (v1) {
mk_shellcmdlist(v1);
+ free(v1);
}
}