[FFmpeg-devel] [PATCH 2/2] ffserver: fix streams memleak when closing a connection.

Michael Niedermayer michaelni at gmx.at
Wed Nov 14 17:18:45 CET 2012


On Tue, Nov 13, 2012 at 04:35:18PM +0100, Clément Bœsch wrote:
> From: Clément Bœsch <clement.boesch at smartjog.com>
> 
> ---
>  ffserver.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/ffserver.c b/ffserver.c
> index 0d2a8a7..28a614f 100644
> --- a/ffserver.c
> +++ b/ffserver.c
> @@ -929,6 +929,7 @@ static void close_connection(HTTPContext *c)
>  
>      for(i=0; i<ctx->nb_streams; i++)
>          av_free(ctx->streams[i]);
> +    av_free(ctx->streams);

should be av_freep()

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In a rich man's house there is no place to spit but his face.
-- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121114/c5ae4a49/attachment.asc>


More information about the ffmpeg-devel mailing list