projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d21f63d
)
Fix a tiny memory leak.
author
Guus Sliepen
<guus@tinc-vpn.org>
Wed, 20 Feb 2013 12:59:50 +0000
(13:59 +0100)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Wed, 20 Feb 2013 12:59:50 +0000
(13:59 +0100)
Found by cppcheck.
src/tincctl.c
patch
|
blob
|
history
diff --git
a/src/tincctl.c
b/src/tincctl.c
index
eaf14e0
..
45bf6ee
100644
(file)
--- a/
src/tincctl.c
+++ b/
src/tincctl.c
@@
-1838,6
+1838,8
@@
static int cmd_export(int argc, char *argv[]) {
int result = export(name, stdout);
if(!tty)
fclose(stdout);
+
+ free(name);
return result;
}