- Fix lock type for memory purify log lock deletion.

This commit is contained in:
W.C.A. Wijngaards
2019-12-04 09:44:31 +01:00
parent 8f79119826
commit 216747bb17
4 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -358,7 +358,7 @@ main(int argc, char* argv[])
testbound_selftest();
checklock_stop();
if(log_get_lock()) {
lock_quick_destroy((lock_quick_type*)log_get_lock());
lock_basic_destroy((lock_basic_type*)log_get_lock());
}
exit(0);
case '1':
@@ -464,7 +464,7 @@ main(int argc, char* argv[])
if(res == 0) {
log_info("Testbound Exit Success\n");
if(log_get_lock()) {
lock_quick_destroy((lock_quick_type*)log_get_lock());
lock_basic_destroy((lock_basic_type*)log_get_lock());
}
#ifdef HAVE_PTHREAD
/* dlopen frees its thread state (dlopen of gost engine) */
+1 -1
View File
@@ -905,7 +905,7 @@ main(int argc, char* argv[])
ecs_test();
#endif /* CLIENT_SUBNET */
if(log_get_lock()) {
lock_quick_destroy((lock_quick_type*)log_get_lock());
lock_basic_destroy((lock_basic_type*)log_get_lock());
}
checklock_stop();
printf("%d checks ok.\n", testcount);