From 6610b88f61166b3c175436da9a4459c48bb18df1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Sun, 2 Jul 2000 17:39:17 +0200 Subject: [PATCH] Fixed memory leak. Rev: src/builtin_functions.c:1.286 --- src/builtin_functions.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/builtin_functions.c b/src/builtin_functions.c index 2b8b3e0122..f3aba4c79a 100644 --- a/src/builtin_functions.c +++ b/src/builtin_functions.c @@ -5,7 +5,7 @@ \*/ /**/ #include "global.h" -RCSID("$Id: builtin_functions.c,v 1.285 2000/06/28 16:59:00 noring Exp $"); +RCSID("$Id: builtin_functions.c,v 1.286 2000/07/02 15:39:17 grubba Exp $"); #include "interpret.h" #include "svalue.h" #include "pike_macros.h" @@ -754,7 +754,7 @@ static char *combine_path(char *cwd,char *file) int tmp; ONERROR err; - SET_ONERROR(err, free_nonull, cwdbuf); + SET_ONERROR(err, free_nonull, &cwdbuf); if((tmp=IS_ABS(file))) { @@ -786,6 +786,8 @@ static char *combine_path(char *cwd,char *file) } #endif + SET_ONERROR(err, free_nonull, &cwdbuf); + #ifdef PIKE_DEBUG if(!cwd) fatal("No cwd in combine_path!\n"); -- GitLab