avutil/log: fix memleak from 669a09fb372fa58ff913ebc326cb64bb3e8e7928
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 29 Apr 2014 01:13:32 +0000 (03:13 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 29 Apr 2014 01:13:51 +0000 (03:13 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/log.c

index 0a8220b..cc51cc0 100644 (file)
@@ -332,7 +332,7 @@ void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl)
     sanitize(part[3].str);
     colored_fputs(av_clip(level >> 3, 0, 6), tint >> 8, part[3].str);
 end:
-    av_bprint_finalize(part+2, NULL);
+    av_bprint_finalize(part+3, NULL);
 #if HAVE_PTHREADS
     pthread_mutex_unlock(&mutex);
 #endif