Browse code

modules/interconnect_route: fixed mem leak on cscf_get_public_identity_from_requri

Richard Good authored on 28/01/2015 10:16:42
Showing 1 changed files
... ...
@@ -208,6 +208,10 @@ int ix_orig_trunk_query(struct sip_msg* msg) {
208 208
     create_orig_avps(ix_route_list->first);
209 209
     
210 210
     free_route_list(ix_route_list);
211
+    
212
+    if(free_called_asserted_identity) {
213
+	if(called_asserted_identity.s) shm_free(called_asserted_identity.s);// shm_malloc in cscf_get_public_identity_from_requri
214
+    }  
211 215
 
212 216
     return 1;
213 217