ffprobe: free log buffer's parent_name during cleanup

Fixes memleak.
pull/131/merge
James Almer 8 years ago
parent 3e0474ff39
commit b613245c97
  1. 1
      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;

Loading…
Cancel
Save