From patchwork Sun Apr 24 17:14:04 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: crypto: Use av_freep instead of av_free X-Patchwork-Submitter: =?utf-8?q?Martin_Storsj=C3=B6?= X-Patchwork-Id: 2537 Message-Id: <1303665244-17326-1-git-send-email-martin@martin.st> To: libav-devel@libav.org Date: Sun, 24 Apr 2011 20:14:04 +0300 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= List-Id: libav development Using av_freep is generally good practice. --- libavformat/crypto.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/crypto.c b/libavformat/crypto.c index ea6012a..fecc2c9 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; }