Branch: Tag:

2000-08-02

2000-08-02 21:55:25 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed memory leak.

Rev: src/builtin_functions.c:1.257

5:   \*/   /**/   #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.256 2000/06/26 17:00:24 noring Exp $"); + RCSID("$Id: builtin_functions.c,v 1.257 2000/08/02 21:55:25 grubba Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"
714:    int tmp;    ONERROR err;    -  SET_ONERROR(err, free_nonull, cwdbuf); -  +     if((tmp=IS_ABS(file)))    {    cwdbuf = (char *)xalloc(tmp+1);
746:    }   #endif    +  SET_ONERROR(err, free_nonull, cwdbuf); +    #ifdef PIKE_DEBUG    if(!cwd)    fatal("No cwd in combine_path!\n");