projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7d321b
)
free c->pb_buffer before overwriting it, fix memleak
author
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Sat, 21 Jun 2008 06:08:59 +0000
(06:08 +0000)
committer
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Sat, 21 Jun 2008 06:08:59 +0000
(06:08 +0000)
Originally committed as revision 13853 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffserver.c
patch
|
blob
|
history
diff --git
a/ffserver.c
b/ffserver.c
index
b53fb04
..
27c998a
100644
(file)
--- a/
ffserver.c
+++ b/
ffserver.c
@@
-754,6
+754,7
@@
static void close_connection(HTTPContext *c)
/* prepare header */
if (url_open_dyn_buf(&ctx->pb) >= 0) {
av_write_trailer(ctx);
+ av_freep(&c->pb_buffer);
url_close_dyn_buf(ctx->pb, &c->pb_buffer);
}
}