res_pjsip_session: Fix memory leak of direct media format capabilities