summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-10-20 19:24:03 -0400
committerTavian Barnes <tavianator@gmail.com>2010-10-20 19:24:03 -0400
commit8866250d8feb9507180b26d03250f7477ef1666a (patch)
tree7001921b55b566aac57575e4868d94cf34a8dab3
parentd33a5e3400b97b66e60d296ca22ba9acf28bc639 (diff)
downloaddimension-8866250d8feb9507180b26d03250f7477ef1666a.tar.xz
Don't call malloc() in the default error handler.
-rw-r--r--libdimension/error.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libdimension/error.c b/libdimension/error.c
index e03ac5c..31d1606 100644
--- a/libdimension/error.c
+++ b/libdimension/error.c
@@ -154,10 +154,6 @@ dmnsn_default_fatal_error_fn()
exit(EXIT_FAILURE);
} else {
thread_exiting = true;
-
- int *ret = malloc(sizeof(int)); /* Don't use dmnsn_malloc */
- if (ret)
- *ret = 1;
- pthread_exit(ret);
+ pthread_exit(NULL);
}
}