aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Output1D.c2
-rw-r--r--src/Output2D.c2
-rw-r--r--src/Output3D.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/src/Output1D.c b/src/Output1D.c
index 1f572f9..50f7c72 100644
--- a/src/Output1D.c
+++ b/src/Output1D.c
@@ -299,7 +299,9 @@ void IOSDF_CheckSteerableParameters1D (ioSDFGH *myGH)
}
else
{
+ char *tmp = msg;
Util_asprintf (&msg, "%s, '%s'", msg, fullname);
+ free (tmp);
}
free (fullname);
}
diff --git a/src/Output2D.c b/src/Output2D.c
index 5eb5161..8b390d4 100644
--- a/src/Output2D.c
+++ b/src/Output2D.c
@@ -299,7 +299,9 @@ void IOSDF_CheckSteerableParameters2D (ioSDFGH *myGH)
}
else
{
+ char *tmp = msg;
Util_asprintf (&msg, "%s, '%s'", msg, fullname);
+ free (tmp);
}
free (fullname);
}
diff --git a/src/Output3D.c b/src/Output3D.c
index 16e01a5..4240c97 100644
--- a/src/Output3D.c
+++ b/src/Output3D.c
@@ -299,7 +299,9 @@ void IOSDF_CheckSteerableParameters3D (ioSDFGH *myGH)
}
else
{
+ char *tmp = msg;
Util_asprintf (&msg, "%s, '%s'", msg, fullname);
+ free (tmp);
}
free (fullname);
}