projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix memory leaks triggered by integration tests.
[tinc]
/
src
/
names.c
diff --git
a/src/names.c
b/src/names.c
index
603b536
..
4f543c9
100644
(file)
--- a/
src/names.c
+++ b/
src/names.c
@@
-50,6
+50,8
@@
void make_names(bool daemon) {
logger(DEBUG_ALWAYS, LOG_INFO, "Both netname and configuration directory given, using the latter...");
}
logger(DEBUG_ALWAYS, LOG_INFO, "Both netname and configuration directory given, using the latter...");
}
+ free(identname);
+
if(netname) {
xasprintf(&identname, "tinc.%s", netname);
} else {
if(netname) {
xasprintf(&identname, "tinc.%s", netname);
} else {