Re: [FFmpeg-devel] [PATCH] ffserver: fixed deallocation bug in build_feed_streams

2016-05-26 Thread Michael Niedermayer
On Thu, May 26, 2016 at 08:29:56PM +0200, Gregor Riepl wrote: > In ffserver.c:build_feed_streams(), the streams pointer is only > correctly reset before deallocation when there is no error. > > This may cause ffserver to crash, because stream lives in static > memory, not the heap. > > The patch

[FFmpeg-devel] [PATCH] ffserver: fixed deallocation bug in build_feed_streams

2016-05-26 Thread Gregor Riepl
In ffserver.c:build_feed_streams(), the streams pointer is only correctly reset before deallocation when there is no error. This may cause ffserver to crash, because stream lives in static memory, not the heap. The patch duplicates the behaviour of the non-error case. >From 00c9203f0349dbae6e701