mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
res_pjsip_session: Fix memory leak of direct media format capabilities
The direct media format capabilities are always allocated in ast_sip_session_alloc and were not freed in the session destructor. Whoops. (This being the third whoops caught by Scott and Nitesh's valgrind work for the Asterisk Test Suite. Nifty!) ........ Merged revisions 402968 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@402969 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1026,6 +1026,7 @@ static void session_destructor(void *obj)
|
||||
ast_party_id_free(&session->id);
|
||||
ao2_cleanup(session->endpoint);
|
||||
ast_format_cap_destroy(session->req_caps);
|
||||
ast_format_cap_destroy(session->direct_media_cap);
|
||||
|
||||
if (session->dsp) {
|
||||
ast_dsp_free(session->dsp);
|
||||
|
Reference in New Issue
Block a user