From cd20f0ba9f6384f15e6c72743ebad54703688b2e Mon Sep 17 00:00:00 2001 From: "Luis A. Lozano" Date: Tue, 5 Sep 2017 16:20:44 -0700 Subject: [PATCH] Avoid memory leak warning. Using the LLVM static analyzer, we get a warning about leaked memory pointed by bcurrent. Since the warning happens within "main" and we don't care about deallocating the memory and just call "exit" which gets rid of the warning. --- support/fc_sort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/fc_sort.c b/support/fc_sort.c index 66cdf39fd..a021ec503 100644 --- a/support/fc_sort.c +++ b/support/fc_sort.c @@ -512,7 +512,7 @@ int main(int argc, char *argv[]) if (!(bcurrent->next)) { printf ("Error: failure allocating memory.\n"); - return -1; + exit(-1); } /* Make sure the new bucket thinks it's the end of the