]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
While sofia does garbage collection, in other locations we still call su_free after...
authorWilliam King <william.king@quentustech.com>
Sun, 15 Sep 2013 23:05:11 +0000 (16:05 -0700)
committerWilliam King <william.king@quentustech.com>
Sun, 15 Sep 2013 23:05:30 +0000 (16:05 -0700)
src/mod/endpoints/mod_sofia/sofia.c

index 1dab5915a4c36ea08356d8591c52cff021af198e..9230944a43e92ad7c5021a3d2a4988a9fd230655 100644 (file)
@@ -8948,6 +8948,10 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia
                switch_assert(sql);
 
                sofia_glue_execute_sql_now(profile, &sql, SWITCH_TRUE);
+
+               if ( full_contact ) {
+                       su_free(nua_handle_home(tech_pvt->nh), full_contact);
+               }
        }
 
        if (is_nat) {