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!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@402968
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
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);