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:
parent
779075a859
commit
cd20f0ba9f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue