Module: kamailio
Branch: master
Commit: a311bfba4c03bc261403d8d06fcec1a396b4284d
URL:
https://github.com/kamailio/kamailio/commit/a311bfba4c03bc261403d8d06fcec1a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-11-02T14:07:36+01:00
rtpengine: free addrinfo in case of unknown address family
---
Modified: modules/rtpengine/rtpengine.c
---
Diff:
https://github.com/kamailio/kamailio/commit/a311bfba4c03bc261403d8d06fcec1a…
Patch:
https://github.com/kamailio/kamailio/commit/a311bfba4c03bc261403d8d06fcec1a…
---
diff --git a/modules/rtpengine/rtpengine.c b/modules/rtpengine/rtpengine.c
index afb9315..a3787eb 100644
--- a/modules/rtpengine/rtpengine.c
+++ b/modules/rtpengine/rtpengine.c
@@ -465,6 +465,7 @@ static int get_ip_type(char *str_addr)
LM_DBG("%s is an ipv6 addinfos\n", str_addr);
} else {
LM_DBG("%s is an unknown addinfos format AF=%d\n",str_addr,
info->ai_family);
+ freeaddrinfo(info);
return -1;
}