DTLS-SRTP fix memory leak

This commit is contained in:
Johan Pascal 2015-01-20 00:59:25 +01:00
parent 85ca8c3cac
commit c95fd55126
2 changed files with 4 additions and 1 deletions

View file

@ -1097,6 +1097,9 @@ void sal_certificates_chain_parse_directory(char **certificate_pem, char **key_p
}
/* generate the fingerprint as described in RFC4572 if needed */
if ((generate_dtls_fingerprint == TRUE) && (fingerprint != NULL)) {
if (*fingerprint != NULL) {
ms_free(*fingerprint);
}
*fingerprint = belle_sip_certificates_chain_get_fingerprint(certificate);
}

@ -1 +1 @@
Subproject commit a27c77bdc96bbc4d727a5d6226a0587cbe8c5aa3
Subproject commit d5389594e93c3499d70d9ddd556f9aac62aabc0a