Module: kamailio
Branch: master
Commit: f92fe42dc6c8d3d5b79cf6543b387501a41c09b3
URL:
https://github.com/kamailio/kamailio/commit/f92fe42dc6c8d3d5b79cf6543b38750…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-15T08:24:59+02:00
nghttp2: free the addr info on listen failure
---
Modified: src/modules/nghttp2/nghttp2_server.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f92fe42dc6c8d3d5b79cf6543b38750…
Patch:
https://github.com/kamailio/kamailio/commit/f92fe42dc6c8d3d5b79cf6543b38750…
---
diff --git a/src/modules/nghttp2/nghttp2_server.c b/src/modules/nghttp2/nghttp2_server.c
index 6f5faf02ad6..ba0290bc4ac 100644
--- a/src/modules/nghttp2/nghttp2_server.c
+++ b/src/modules/nghttp2/nghttp2_server.c
@@ -793,11 +793,11 @@ static void start_listen(struct event_base *evbase, app_context
*app_ctx)
(int)rp->ai_addrlen);
if(listener) {
freeaddrinfo(res);
-
return;
}
}
LM_ERR("Could not start listener");
+ freeaddrinfo(res);
}
static void initialize_app_context(