Skip to content
Snippets Groups Projects
Commit a71bcd1a authored by Etienne Buira's avatar Etienne Buira Committed by Martin Storsjö
Browse files

crypto: Use av_freep instead of av_free


This fixes a potential double free.

Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent dbaba52e
No related branches found
No related tags found
No related merge requests found
...@@ -97,8 +97,8 @@ static int crypto_open(URLContext *h, const char *uri, int flags) ...@@ -97,8 +97,8 @@ static int crypto_open(URLContext *h, const char *uri, int flags)
return 0; return 0;
err: err:
av_free(c->key); av_freep(&c->key);
av_free(c->iv); av_freep(&c->iv);
return ret; return ret;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment