Browse code

modules/interconnect: fixed 2nd occurence of cscf_get_public_identity_from_requri mem leak

Richard Good authored on 28/01/2015 10:19:43
Showing 1 changed files
... ...
@@ -339,6 +339,10 @@ int ix_term_trunk_query(struct sip_msg* msg, char* ext_trunk_id) {
339 339
     
340 340
     free_route_list(ix_route_list);
341 341
 
342
+    if(free_called_asserted_identity) {
343
+	if(called_asserted_identity.s) shm_free(called_asserted_identity.s);// shm_malloc in cscf_get_public_identity_from_requri
344
+    } 
345
+    
342 346
     return 1;
343 347
     
344 348