about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--Src/init.c1
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b90d698aa..b4997820c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-01-04  Peter Stephenson  <p.w.stephenson@ntlworld.com>
+
+	* 30084: Src/init.c: zsfree(argzero) before we set it again
+	following ztrdup() in parseargs().
+
 2012-01-02  Barton E. Schaefer  <schaefer@zsh.org>
 
 	* 30073 (plus comment): Src/Zle/zle_main.c: use queue_signals()
@@ -15810,5 +15815,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5552 $
+* $Revision: 1.5553 $
 *****************************************************
diff --git a/Src/init.c b/Src/init.c
index 30cd40e6c..29191410e 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -978,6 +978,7 @@ setupshin(char *runscript)
 	    exit(127);
 	}
 	scriptfilename = sfname;
+	zsfree(argzero); /* ztrdup'd in parseargs */
 	argzero = runscript;
     }
     /*