diff options
-rw-r--r-- | libavformat/crypto.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/crypto.c b/libavformat/crypto.c index ea6012ad09..fecc2c961c 100644 --- a/libavformat/crypto.c +++ b/libavformat/crypto.c @@ -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; } |