chiark / gitweb /
regress: Break out Tallocshutdown
[adns.git] / regress / hcommon.c.m4
index 3a335048e0c9438967086be0b845450eb7a2eaa2..74e483e5c82d39cbb7180a3b967cf522865c92de 100644 (file)
@@ -311,7 +311,7 @@ void *Hrealloc(void *op, size_t nsz) {
   return np;
 }
 
-void Texit(int rv) {
+void Tallocshutdown(void) {
   struct malloced *loopnode;
 
   Tshutdown();
@@ -324,6 +324,10 @@ void Texit(int rv) {
     putc('\n',stderr);
     if (ferror(stderr)) exit(-1);
   }
+}
+
+void Texit(int rv) {
+  Tallocshutdown();
   exit(rv);
 }