projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix calling freeaddrinfo() on the wrong pointer.
[tinc]
/
src
/
node.c
diff --git
a/src/node.c
b/src/node.c
index
c00124d
..
bea23c7
100644
(file)
--- a/
src/node.c
+++ b/
src/node.c
@@
-20,6
+20,7
@@
#include "system.h"
+#include "address_cache.h"
#include "control_common.h"
#include "hash.h"
#include "logger.h"
@@
-118,6
+119,10
@@
void free_node(node_t *n) {
free(n->late);
}
+ if(n->address_cache) {
+ close_address_cache(n->address_cache);
+ }
+
free(n);
}