summaryrefslogtreecommitdiff
path: root/libavformat/crypto.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-04-24 20:10:37 +0300
committerMartin Storsjö <martin@martin.st>2011-04-24 21:30:03 +0300
commitac9cf2e5c48aa1edb2c7ba8e7edfa55c9fde609b (patch)
treea1eab2699f405a0ad6bce005a8bdd8f16b67a743 /libavformat/crypto.c
parent50f7c296469e9675e07fd1afa37b5e430b876f1c (diff)
crypto: Use av_freep instead of av_free
Using av_freep is generally good practice. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/crypto.c')
-rw-r--r--libavformat/crypto.c6
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;
}