projects
/
oweals
/
tinc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Apply patch from Scott Lamb fixing some memory and resource leaks.
[oweals/tinc.git]
/
src
/
process.c
diff --git
a/src/process.c
b/src/process.c
index 11e8b4fc7b98920fadb981e4fe1c7cc74eced74d..30ff82ad5ec700d86de5af753a65cbc388d4f00e 100644
(file)
--- a/
src/process.c
+++ b/
src/process.c
@@
-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);