Skip to content
Snippets Groups Projects
Commit b613245c authored by James Almer's avatar James Almer
Browse files

ffprobe: free log buffer's parent_name during cleanup

Fixes memleak.
parent 3e0474ff
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment