about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Src/exec.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 96fc3a619..63ad6134c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,6 @@
 2008-09-21  Clint Adams  <clint@zsh.org>
 
-	* 25701: Src/exec.c: fix memory leak in loadautofn.
+	* 25701 (tweaked): Src/exec.c: fix memory leak in loadautofn.
 
 	* 25697: Functions/Prompts/prompt_clint_setup: drop git code and
 	switch to vcs_info.
diff --git a/Src/exec.c b/Src/exec.c
index 55b058c17..3ae52dd9c 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -4177,7 +4177,6 @@ loadautofn(Shfunc shf, int fksh, int autol)
 	shf->filename = fname;
     }
     popheap();
-    zsfree(fname);
 
     return shf;
 }