[FFmpeg-cvslog] r13853 - trunk/ffserver.c

bcoudurier subversion
Sat Jun 21 08:09:00 CEST 2008


Author: bcoudurier
Date: Sat Jun 21 08:08:59 2008
New Revision: 13853

Log:
free c->pb_buffer before overwriting it, fix memleak

Modified:
   trunk/ffserver.c

Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	(original)
+++ trunk/ffserver.c	Sat Jun 21 08:08:59 2008
@@ -754,6 +754,7 @@ static void close_connection(HTTPContext
             /* 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);
             }
         }




More information about the ffmpeg-cvslog mailing list