Commit 7d89f7cb authored by Etienne Buira's avatar Etienne Buira Committed by Michael Niedermayer

crypto: fix potential double free

parent 1e9b3026
......@@ -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;
}
......@@ -157,8 +157,6 @@ static int crypto_close(URLContext *h)
if (c->hd)
ffurl_close(c->hd);
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