Commit ac9cf2e5 authored by Martin Storsjö's avatar Martin Storsjö

crypto: Use av_freep instead of av_free

Using av_freep is generally good practice.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 50f7c296
......@@ -153,9 +153,9 @@ static int crypto_close(URLContext *h)
CryptoContext *c = h->priv_data;
if (c->hd)
ffurl_close(c->hd);
av_free(c->aes);
av_free(c->key);
av_free(c->iv);
av_freep(&c->aes);
av_freep(&c->key);
av_freep(&c->iv);
return 0;
}
......
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