From a932d4f46c2fadd6c750d844846fb9ba4baf45e0 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 16 May 2011 23:44:06 -0600 Subject: Add basic leak check. --- libdimension/profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdimension/profile.c') diff --git a/libdimension/profile.c b/libdimension/profile.c index f9dd2d9..8fca36a 100644 --- a/libdimension/profile.c +++ b/libdimension/profile.c @@ -169,7 +169,7 @@ dmnsn_print_bad_prediction(void *ptr) dmnsn_free(branch->location); } -static void __attribute__((destructor)) +DMNSN_DESTRUCTOR static void dmnsn_print_bad_predictions(void) { dmnsn_dictionary *thread_profile = dmnsn_get_thread_profile(); -- cgit v1.2.3