aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Output2D.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Output2D.c b/src/Output2D.c
index 9c8a8e4..cc58789 100644
--- a/src/Output2D.c
+++ b/src/Output2D.c
@@ -187,7 +187,7 @@ int IOJpeg_TriggerOutput2D (const cGH *GH, int vindex)
static void CheckSteerableParameters (IOJpegGH *myGH)
{
int i, out_old, out2D_vars_current_nset;
- char *msg, *fullname;
+ char *msg, *oldmsg, *fullname;
static int out2D_vars_lastset = 0;
DECLARE_CCTK_PARAMETERS
@@ -240,7 +240,9 @@ static void CheckSteerableParameters (IOJpegGH *myGH)
}
else
{
- Util_asprintf (&msg, "%s %s", msg, fullname);
+ oldmsg = msg;
+ Util_asprintf (&msg, "%s %s", oldmsg, fullname);
+ free (oldmsg);
}
free (fullname);
}