Commit a71bcd1a authored by Etienne Buira's avatar Etienne Buira Committed by Martin Storsjö

crypto: Use av_freep instead of av_free

This fixes a potential double free.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent dbaba52e
......@@ -97,8 +97,8 @@ static int crypto_open(URLContext *h, const char *uri, int flags)
return 0;
err:
av_free(c->key);
av_free(c->iv);
av_freep(&c->key);
av_freep(&c->iv);
return ret;
}
......
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