diff options
-rw-r--r-- | src/socket.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/socket.c b/src/socket.c index 19c513a8..cdafadd0 100644 --- a/src/socket.c +++ b/src/socket.c @@ -118,6 +118,7 @@ int osmo_sock_init(uint16_t family, uint16_t type, uint8_t proto, " %s:%u: %s\n", host, port, strerror(errno)); close(sfd); + freeaddrinfo(result); return -EINVAL; } } |