projects
/
oweals
/
tinc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add some missing freeaddrinfo() calls to avoid leaking memory.
[oweals/tinc.git]
/
src
/
net_setup.c
diff --git
a/src/net_setup.c
b/src/net_setup.c
index 4f9d738f7c9498d3876cbe98fd4c4becf39b2416..17675aec40ace0b3f8d775875c54321961206e55 100644
(file)
--- a/
src/net_setup.c
+++ b/
src/net_setup.c
@@
-902,6
+902,7
@@
static bool setup_myself(void) {
free(myport);
memcpy(&sa, ai->ai_addr, ai->ai_addrlen);
+ freeaddrinfo(ai);
sockaddr2str(&sa, NULL, &myport);
}