projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbaba52
)
crypto: Use av_freep instead of av_free
author
Etienne Buira
<etienne.buira.lists@free.fr>
Wed, 8 Jun 2011 00:20:53 +0000
(
02:20
+0200)
committer
Martin Storsjö
<martin@martin.st>
Wed, 8 Jun 2011 20:41:53 +0000
(23:41 +0300)
This fixes a potential double free.
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/crypto.c
patch
|
blob
|
history
diff --git
a/libavformat/crypto.c
b/libavformat/crypto.c
index
789a4d1
..
5e7ee1e
100644
(file)
--- 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_free
p(&
c->key);
+ av_free
p(&
c->iv);
return ret;
}