[FFmpeg-cvslog] avutil/log: fix memleak from 669a09fb372fa58ff913ebc326cb64bb3e8e7928

Michael Niedermayer git at videolan.org
Tue Apr 29 04:38:14 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Apr 29 03:13:32 2014 +0200| [7c710764705ad46981592467a0d36588371d3ccc] | committer: Michael Niedermayer

avutil/log: fix memleak from 669a09fb372fa58ff913ebc326cb64bb3e8e7928

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7c710764705ad46981592467a0d36588371d3ccc
---

 libavutil/log.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/log.c b/libavutil/log.c
index 0a8220b..cc51cc0 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -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



More information about the ffmpeg-cvslog mailing list