Merge "res_pjsip: Endpoint destruction does not free DTLS configuration"
authorJenkins2 <jenkins2@gerrit.asterisk.org>
Mon, 19 Feb 2018 12:23:35 +0000 (06:23 -0600)
committerGerrit Code Review <gerrit2@gerrit.digium.api>
Mon, 19 Feb 2018 12:23:35 +0000 (06:23 -0600)
res/res_pjsip/pjsip_configuration.c

index d1bfdfe..3094f24 100644 (file)
@@ -2193,6 +2193,7 @@ static void info_configuration_destroy(struct ast_sip_endpoint_info_configuratio
 
 static void media_configuration_destroy(struct ast_sip_endpoint_media_configuration *media)
 {
+       ast_rtp_dtls_cfg_free(&media->rtp.dtls_cfg);
        ast_string_field_free_memory(&media->rtp);
        ast_string_field_free_memory(media);
 }