]> 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:36:41 +0000 (16:36 -0700)
src/mod/endpoints/mod_sofia/sofia.c

index 200901af3485b14623ce85f13a4c8baa24827881..d824e5eeddcd538de8d8aa17b3ee1b4a2943170f 100644 (file)
@@ -5435,6 +5435,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;