From ac9cf2e5c48aa1edb2c7ba8e7edfa55c9fde609b Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Sun, 24 Apr 2011 20:10:37 +0300 Subject: crypto: Use av_freep instead of av_free MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Using av_freep is generally good practice. Signed-off-by: Martin Storsjö --- libavformat/crypto.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavformat/crypto.c') 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; } -- cgit v1.2.3