ffprobe: free log buffer's parent_name during cleanup
authorJames Almer <jamrial@gmail.com>
Mon, 27 Mar 2017 23:37:29 +0000 (20:37 -0300)
committerJames Almer <jamrial@gmail.com>
Mon, 27 Mar 2017 23:37:29 +0000 (20:37 -0300)
Fixes memleak.

ffprobe.c

index 17b4580..67c4ed4 100644 (file)
--- 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;