chiark
/
gitweb
/
~ianmdlvl
/
adns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
regress: Break out Tallocshutdown
[adns.git]
/
regress
/
hcommon.c.m4
diff --git
a/regress/hcommon.c.m4
b/regress/hcommon.c.m4
index 3a335048e0c9438967086be0b845450eb7a2eaa2..74e483e5c82d39cbb7180a3b967cf522865c92de 100644
(file)
--- a/
regress/hcommon.c.m4
+++ b/
regress/hcommon.c.m4
@@
-311,7
+311,7
@@
void *Hrealloc(void *op, size_t nsz) {
return np;
}
-void T
exit(int rv
) {
+void T
allocshutdown(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);
}