From dd90bd186d421c20fb7e599a4e4360655d06617d Mon Sep 17 00:00:00 2001 From: tradke Date: Tue, 26 Jul 2005 15:03:05 +0000 Subject: Fixed small memory when using Util_snprintf(). git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOStreamedHDF5/trunk@112 0888f3d4-9f52-45d2-93bc-d00801ff5e46 --- src/Output.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Output.c b/src/Output.c index 5e3374d..7e6400a 100644 --- a/src/Output.c +++ b/src/Output.c @@ -317,7 +317,9 @@ void IOStreamedHDF5_CheckSteerableParameters (const cGH *GH, } else { + char *tmp = msg; Util_asprintf (&msg, "%s, '%s'", msg, fullname); + free (tmp); } free (fullname); } -- cgit v1.2.3