From 8866250d8feb9507180b26d03250f7477ef1666a Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 20 Oct 2010 19:24:03 -0400 Subject: Don't call malloc() in the default error handler. --- libdimension/error.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'libdimension/error.c') 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); } } -- cgit v1.2.3