aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/crypto.c
diff options
context:
space:
mode:
authorEtienne Buira <etienne.buira.lists@free.fr>2011-06-08 02:20:53 +0200
committerMartin Storsjö <martin@martin.st>2011-06-08 23:41:53 +0300
commita71bcd1a7f66e210971c44452dc4cdae7bdbd98a (patch)
treed3bd9cd9ba4c26e8fe25d6deeedc1e1a007bd855 /libavformat/crypto.c
parentdbaba52ed25f79c8be0ce1a478b229bf868f8c11 (diff)
downloadffmpeg-a71bcd1a7f66e210971c44452dc4cdae7bdbd98a.tar.gz
crypto: Use av_freep instead of av_free
This fixes a potential double free. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/crypto.c')
-rw-r--r--libavformat/crypto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/crypto.c b/libavformat/crypto.c
index 789a4d1e76..5e7ee1eba3 100644
--- a/libavformat/crypto.c
+++ b/libavformat/crypto.c
@@ -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;
}