mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-20 23:40:18 +00:00
openssl encrypt: fixed a leak
fixes CID 402977
This commit is contained in:
@@ -130,6 +130,7 @@ static int openssl_encrypt_init(struct openssl_encrypt **state, const char *pass
|
||||
s->cipher = get_cipher(mode);
|
||||
if (s->cipher == NULL) {
|
||||
log_msg(LOG_LEVEL_ERROR, MOD_NAME "Cipher %d not available!\n", (int) mode);
|
||||
free(s);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user