Explorar o código

modules/interconnect_route: fixed mem leak on cscf_get_public_identity_from_requri

Richard Good %!s(int64=10) %!d(string=hai) anos
pai
achega
b5ee4441f2
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      modules/interconnectroute/query.c

+ 4 - 0
modules/interconnectroute/query.c

@@ -208,6 +208,10 @@ int ix_orig_trunk_query(struct sip_msg* msg) {
     create_orig_avps(ix_route_list->first);
     
     free_route_list(ix_route_list);
+    
+    if(free_called_asserted_identity) {
+	if(called_asserted_identity.s) shm_free(called_asserted_identity.s);// shm_malloc in cscf_get_public_identity_from_requri
+    }  
 
     return 1;