From 0db9f18a18cfd9c679afa4862e3328caa12f17d7 Mon Sep 17 00:00:00 2001 From: oharboe Date: Thu, 28 Feb 2008 14:23:32 +0000 Subject: [PATCH] Pavel Chromy spotted a leak git-svn-id: svn://svn.berlios.de/openocd/trunk@380 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/helper/log.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/helper/log.c b/src/helper/log.c index 2a77a270..a3e8e816 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 -- 2.39.5