]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Alice meet rabit hole. There is a leak here on every invite that comes back from...
authorWilliam King <william.king@quentustech.com>
Sat, 18 May 2013 23:34:46 +0000 (16:34 -0700)
committerWilliam King <william.king@quentustech.com>
Sat, 18 May 2013 23:35:03 +0000 (16:35 -0700)
src/mod/endpoints/mod_sofia/sofia.c

index dac459c774a2c48018a4920c9c04e89666619f15..88b014c9be085f4556ddd1674a57fb79dec35735 100644 (file)
@@ -5491,6 +5491,9 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status
 
                                        sofia_glue_execute_sql_now(profile, &sql, SWITCH_TRUE);
 
+                                       if ( full_contact ) {
+                                               su_free(nua_handle_home(tech_pvt->nh), full_contact);
+                                       }
                                }
                        } else if (status == 200 && (profile->pres_type)) {
                                char *sql = NULL;