projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c643e0
)
avio: Free URLContext private data allocated via AVOptions
author
Martin Storsjö
<martin@martin.st>
Tue, 8 Nov 2011 22:48:40 +0000
(
00:48
+0200)
committer
Martin Storsjö
<martin@martin.st>
Thu, 10 Nov 2011 08:51:06 +0000
(10:51 +0200)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/avio.c
patch
|
blob
|
blame
|
history
diff --git
a/libavformat/avio.c
b/libavformat/avio.c
index
a954aa8
..
8e18549
100644
(file)
--- a/
libavformat/avio.c
+++ b/
libavformat/avio.c
@@
-335,8
+335,11
@@
int ffurl_close(URLContext *h)
#if CONFIG_NETWORK
ff_network_close();
#endif
- if (h->prot->priv_data_size)
+ if (h->prot->priv_data_size) {
+ if (h->prot->priv_data_class)
+ av_opt_free(h->priv_data);
av_free(h->priv_data);
+ }
av_free(h);
return ret;
}