We need to leave the corepath around
authorVolker Lendecke <vl@samba.org>
Sun, 27 Jan 2008 09:22:42 +0000 (10:22 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 27 Jan 2008 09:24:31 +0000 (10:24 +0100)
In case we need to dump core, in line 191 we dereference corepath to be able to
chdir there.

Jeremy, please check!

Volker

source/lib/fault.c

index 33e1401d7aac4d76e13e842c35c24a6f997fbb16..1964955f1b814693cc1b99dd527413af60d59de6 100644 (file)
@@ -132,7 +132,6 @@ void dump_core_setup(const char *progname)
        sys_chown(corepath,getuid(),getgid());
        chmod(corepath,0700);
 
-       SAFE_FREE(corepath);
        SAFE_FREE(logbase);
 
 #ifdef HAVE_GETRLIMIT