Module: kamailio
Branch: 5.2
Commit: 28a85a330128cc1ac8e7388aeae314808c01796b
URL:
https://github.com/kamailio/kamailio/commit/28a85a330128cc1ac8e7388aeae3148…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-10-02T16:49:36Z
Revert "evapi: free addr info in case of bind error"
This reverts commit e7a390388fe640d46efc640e97a87f00f1361f47.
---
Modified: src/modules/evapi/evapi_dispatch.c
---
Diff:
https://github.com/kamailio/kamailio/commit/28a85a330128cc1ac8e7388aeae3148…
Patch:
https://github.com/kamailio/kamailio/commit/28a85a330128cc1ac8e7388aeae3148…
---
diff --git a/src/modules/evapi/evapi_dispatch.c b/src/modules/evapi/evapi_dispatch.c
index 9b3bf4e6cb..e16d4c5ad2 100644
--- a/src/modules/evapi/evapi_dispatch.c
+++ b/src/modules/evapi/evapi_dispatch.c
@@ -695,7 +695,6 @@ int evapi_run_dispatcher(char *laddr, int lport)
sizeof(evapi_srv_addr)) < 0) {
LM_ERR("cannot bind to local address and port [%s:%d]\n", laddr, lport);
close(evapi_srv_sock);
- freeaddrinfo(ai_res);
return -1;
}
if (listen(evapi_srv_sock, 4) < 0) {