From 8bcbcdf8830366b8f789d4e5c3a4dd8514aead14 Mon Sep 17 00:00:00 2001 From: tradke Date: Tue, 26 Jul 2005 15:03:04 +0000 Subject: Fixed small memory when using Util_snprintf(). git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@337 ebee0441-1374-4afa-a3b5-247f3ba15b9a --- src/Output.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Output.c') diff --git a/src/Output.c b/src/Output.c index f8698d0..34aa648 100644 --- a/src/Output.c +++ b/src/Output.c @@ -345,7 +345,9 @@ void IOFlexIO_CheckSteerableParameters (const cGH *GH, flexioGH *myGH) } else { + char *tmp = msg; Util_asprintf (&msg, "%s, '%s'", msg, fullname); + free (tmp); } free (fullname); } -- cgit v1.2.3