Re: [FFmpeg-devel] [PATCH] ffserver: fix memory leaks pointed out by valgrind.

2017-04-16 Thread Zalewa
Hello, Approach 2. This one reverses the shared state created by unlayer_stream() by nullifying the pointers to shared objects and then passes the "cleaned" AVFormatContext to avformat_free_context(). In result we have less code and less meddling with internals. See close_unlayered_format_con

Re: [FFmpeg-devel] [PATCH] ffserver: fix memory leaks pointed out by valgrind.

2017-04-15 Thread wm4
On Sat, 15 Apr 2017 09:47:58 +0200 Zalewa PL wrote: > Hello, > > > The plan is that if ffserver is not fixed before the next bump, it will > > be removed. > > ffserver has been serving our purpose in a 24/7 fashion for about 7 > years now. It will probably be serving us for the foreseeable f

Re: [FFmpeg-devel] [PATCH] ffserver: fix memory leaks pointed out by valgrind.

2017-04-15 Thread Zalewa PL
Hello, The plan is that if ffserver is not fixed before the next bump, it will be removed. ffserver has been serving our purpose in a 24/7 fashion for about 7 years now. It will probably be serving us for the foreseeable future, whatever the community decides. I prefer to share any fix I mak

Re: [FFmpeg-devel] [PATCH] ffserver: fix memory leaks pointed out by valgrind.

2017-04-14 Thread wm4
On Fri, 14 Apr 2017 15:00:05 +0200 Zalewa wrote: > From 29d36664c55b3a7078ebe57f8642e1d7dc389f16 Mon Sep 17 00:00:00 2001 > From: Zalewa > Date: Fri, 14 Apr 2017 09:26:18 +0200 > Subject: [PATCH] ffserver: fix memory leaks pointed out by valgrind. > > Many memory leaks were created upon HTTP cl

[FFmpeg-devel] [PATCH] ffserver: fix memory leaks pointed out by valgrind.

2017-04-14 Thread Zalewa
Many memory leaks were created upon HTTP client disconnect. Many clients connecting & disconnecting rapidly could very quickly create leaks going into Gigabytes of memory. From 29d36664c55b3a7078ebe57f8642e1d7dc389f16 Mon Sep 17 00:00:00 2001 From: Zalewa Date: Fri, 14 Apr 2017 09:26:18 +0200 Subj