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.
This commit is contained in:
Luis A. Lozano 2017-09-05 16:20:44 -07:00
parent 779075a859
commit cd20f0ba9f
1 changed files with 1 additions and 1 deletions

View File

@ -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