Apply patch from Scott Lamb fixing some memory and resource leaks.
This commit is contained in:
parent
6c6535a416
commit
45fca3c723
2 changed files with 13 additions and 6 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue