[FFmpeg-devel] [PATCH 09/17] ffserver.c: simplify cleanup in run_server()

Stephan Holljes klaxa1337 at googlemail.com
Thu Jun 28 03:51:09 EEST 2018


Signed-off-by: Stephan Holljes <klaxa1337 at googlemail.com>
---
 ffserver.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/ffserver.c b/ffserver.c
index cc7dc6c..f128b55 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -646,18 +646,10 @@ end:
         }
         av_free(winfos_p[stream_index]);
         av_free(w_threads_p[stream_index]);
-        // pubs[stream_index] could be null if the file could not be opened
+        // pubs[stream_index] could be null if the file could not be opened or mkv was not requested
         if (pubs[stream_index])
             publisher_free(pubs[stream_index]);
     }
-    av_free(rinfos);
-    av_free(winfos_p);
-    av_free(r_threads);
-    av_free(w_threads_p);
-    av_free(pubs);
-    av_free(ifmt_ctxs);
-
-    return NULL;
 
 error_cleanup:
     av_free(rinfos);
-- 
2.18.0



More information about the ffmpeg-devel mailing list