From 6473498cb2ce6951e9694341fa6a100bdfde2cca Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Sat, 3 Aug 2013 18:20:36 +1000 Subject: [PATCH] SICS-648: memory leak in nxscript.c:putslab fix memory leak (but only on malloc path) Originally committed on SVN as, r2428 | dcl | 2008-04-14 09:47:50 +1000 (Mon, 14 Apr 2008) --- nxscript.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nxscript.c b/nxscript.c index 9fc7a277..ed3ad5c5 100644 --- a/nxscript.c +++ b/nxscript.c @@ -1008,6 +1008,8 @@ static void putSlab(SConnection * pCon, SicsInterp * pSics, pNXScript self, if (status == NX_OK) { written = 1; } + if (argc > 6) + free(histData); } }