additional cleanup for the binheap test

by Dridi, thank you
parent ab70a5d2
......@@ -538,14 +538,6 @@ vrnd_lock(void)
{
}
#if defined(__SANITIZER) || __has_feature(address_sanitizer)
int __lsan_is_turned_off(void);
int __lsan_is_turned_off(void)
{
return (1);
}
#endif
int
main(void)
{
......@@ -649,8 +641,10 @@ main(void)
}
fprintf(stderr, "%d updates OK\n", M);
}
while ((fp = binheap_root(bh)) != NULL)
while ((fp = binheap_root(bh)) != NULL) {
binheap_delete(bh, fp->idx);
FREE_OBJ(fp);
}
binheap_destroy(&bh);
AZ(bh);
return (0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment