Commit b613245c authored by James Almer's avatar James Almer

ffprobe: free log buffer's parent_name during cleanup

Fixes memleak.
parent 3e0474ff
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment