Unverified Commit eb1e940b authored by Pascal Bühler's avatar Pascal Bühler Committed by GitHub

Merge pull request #405 from pabuhler/prevent-potential-double-free

prevent potential double free
parents ae52e44a ba2ed79c
......@@ -121,6 +121,7 @@ static srtp_err_status_t srtp_aes_icm_alloc(srtp_cipher_t **c,
icm = (srtp_aes_icm_ctx_t *)srtp_crypto_alloc(sizeof(srtp_aes_icm_ctx_t));
if (icm == NULL) {
srtp_crypto_free(*c);
*c = NULL;
return srtp_err_status_alloc_fail;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment