From 5cae0e52071908c71938e418da010d2131c828d1 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sun, 21 Sep 2008 13:40:57 +0000 Subject: correct overzealousness in 25701 --- ChangeLog | 2 +- Src/exec.c | 1 - 2 files changed, 1 insertion(+), 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 - * 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; } -- cgit 1.4.1