Apply patch from Scott Lamb fixing some memory and resource leaks.

This commit is contained in:
Guus Sliepen 2007-02-14 09:21:34 +00:00
parent 6c6535a416
commit 45fca3c723
2 changed files with 13 additions and 6 deletions

View file

@ -379,8 +379,10 @@ bool execute_script(const char *name, char **envp)
/* First check if there is a script */
if(stat(scriptname + 1, &s))
if(stat(scriptname + 1, &s)) {
free(scriptname);
return true;
}
ifdebug(STATUS) logger(LOG_INFO, _("Executing script %s"), name);