void tMPI_Trace_print(const char *fmt, ...);
#endif
-/* error-checking malloc/realloc: */
+/* error-checking malloc/realloc/free: */
void *tMPI_Malloc(size_t size);
void *tMPI_Realloc(void *p, size_t size);
+void tMPI_Free(void *p);
+
+/*
+//use the following instead of the above function definition for debugging mis- matched allocate/free calls.
+#include <smalloc.h>
+#define tMPI_Free(a) sfree(a)
+*/
/* get the current thread structure pointer */
if (ir->dhdl_derivatives == dhdlderivativesYES)
{
sprintf(buf,"%s %s %g",dhdl,lambda,ir->init_lambda);
- setname[nsi++] = strdup(buf);
+ setname[nsi++] = gmx_strdup(buf);
}
for(s=0; s<ir->n_flambda; s++)
{
sprintf(buf,"%s %s %g",deltag,lambda,ir->flambda[s]);
- setname[nsi++] = strdup(buf);
+ setname[nsi++] = gmx_strdup(buf);
}
xvgr_legend(fp,nsets,(const char**)setname,oenv);