aboutsummaryrefslogtreecommitdiffstats
path: root/ffserver.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-05-21 20:50:41 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-05-21 20:50:41 +0000
commit8a0b55ff35a54449b07d4f096a774956da134083 (patch)
tree7bc66554c6438913b9c37a9f9dd543d402ea4731 /ffserver.c
parentafe359c11052b918f3127dc8e4fa918e7fb815a5 (diff)
downloadffmpeg-8a0b55ff35a54449b07d4f096a774956da134083.tar.gz
do not forget to free packet, fix memleak
Originally committed as revision 13222 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ffserver.c b/ffserver.c
index e463f32598..fc774d9733 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -2192,8 +2192,10 @@ static int http_prepare_data(HTTPContext *c)
c->buffer_end = c->pb_buffer + len;
codec->frame_number++;
- if (len == 0)
+ if (len == 0) {
+ av_free_packet(&pkt);
goto redo;
+ }
}
av_free_packet(&pkt);
}