From: oharboe Date: Thu, 28 Feb 2008 14:23:32 +0000 (+0000) Subject: Pavel Chromy spotted a leak X-Git-Tag: v0.1.0~909 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=0db9f18a18cfd9c679afa4862e3328caa12f17d7 Pavel Chromy spotted a leak git-svn-id: svn://svn.berlios.de/openocd/trunk@380 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- diff --git a/src/helper/log.c b/src/helper/log.c index 2a77a2704e..a3e8e816e0 100644 --- a/src/helper/log.c +++ b/src/helper/log.c @@ -118,6 +118,8 @@ void log_printfnl(enum log_levels level, const char *file, int line, const char va_start(args, format); log_printfv(level, file, line, function, t, args); va_end(args); + + free(t); } /* change the current debug level on the fly