ossp-pkg/var/ts.c 1.1 -> 1.2
--- ts.c 2002/03/07 14:58:41 1.1
+++ ts.c 2002/03/08 12:38:24 1.2
@@ -33,6 +33,11 @@
#include <string.h>
#include <stdarg.h>
+#include "config.h"
+#if defined(HAVE_DMALLOC_H) && defined(WITH_DMALLOC)
+#include "dmalloc.h"
+#endif
+
#include "ts.h"
/* embedded ring data structure library */
@@ -286,7 +291,7 @@
/* iterate through all test cases */
RING_FOREACH(tst, &ts->tests, ts_test_t, next) {
cp = ts_suite_masprintf(" Test: %s ........................................"
- "........................................", tst->title);
+ "........................................", tst->title);
cp[60] = '\0';
fprintf(stdout, "%s", cp);
free(cp);
@@ -379,7 +384,7 @@
free(tst->title);
free(tst);
}
- free(tst->title);
+ free(ts->title);
free(ts);
return;
}
|
|