[FFmpeg-cvslog] ffprobe: free log buffer's parent_name during cleanup

James Almer git at videolan.org
Tue Mar 28 05:39:32 EEST 2017


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Mon Mar 27 20:37:29 2017 -0300| [b613245c9715c34358522737bf0cf6a4f9392ca3] | committer: James Almer

ffprobe: free log buffer's parent_name during cleanup

Fixes memleak.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b613245c9715c34358522737bf0cf6a4f9392ca3
---

 ffprobe.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ffprobe.c b/ffprobe.c
index 17b4580..67c4ed4 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1911,6 +1911,7 @@ static void clear_log(int need_lock)
         pthread_mutex_lock(&log_mutex);
     for (i=0; i<log_buffer_size; i++) {
         av_freep(&log_buffer[i].context_name);
+        av_freep(&log_buffer[i].parent_name);
         av_freep(&log_buffer[i].log_message);
     }
     log_buffer_size = 0;



More information about the ffmpeg-cvslog mailing list