Commit 253ac269 authored by Pascal Buhler's avatar Pascal Buhler

Remove needless check of session_keys

The session_keys array is not shared with the
template so if it was allocated just free it.
parent 9546e959
......@@ -257,12 +257,6 @@ srtp_err_status_t srtp_stream_dealloc(srtp_stream_ctx_t *stream,
srtp_crypto_free(session_keys->limit);
}
}
}
if (stream_template &&
stream->session_keys == stream_template->session_keys) {
/* do nothing */
} else {
srtp_crypto_free(stream->session_keys);
}
......
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