X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=regress%2Fhcommon.c.m4;fp=regress%2Fhcommon.c.m4;h=74e483e5c82d39cbb7180a3b967cf522865c92de;hb=efcf28c4ef22924c517bbed0e79de081f4bdaa79;hp=3a335048e0c9438967086be0b845450eb7a2eaa2;hpb=78634a979a03fcb8a18811a731c80f280567a509;p=adns.git diff --git a/regress/hcommon.c.m4 b/regress/hcommon.c.m4 index 3a33504..74e483e 100644 --- a/regress/hcommon.c.m4 +++ b/regress/hcommon.c.m4 @@ -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); }