From e08ed86d409afd1f2bc551ca9e977685dded34be Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Tue, 11 Jan 2000 09:05:59 +0000 Subject: zsh-workers/9287 --- Src/exec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Src/exec.c b/Src/exec.c index d9b8d95ec..af5a02f9c 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -2913,6 +2913,7 @@ execautofn(Cmd cmd, LinkList args, int flags) if (l == &dummy_list) { zerr("%s: function definition file not found", shf->nam, 0); + popheap(); return 1; } if (isset(KSHAUTOLOAD)) { @@ -2922,6 +2923,7 @@ execautofn(Cmd cmd, LinkList args, int flags) shf = (Shfunc) shfunctab->getnode(shfunctab, n); if(!shf || (shf->flags & PM_UNDEFINED)) { zerr("%s: function not defined by file", n, 0); + popheap(); return 1; } } else { -- cgit 1.4.1