Fix a bug in the unlock for the library

Signed-off-by: Gavin Howard <[email protected]>
This commit is contained in:
Gavin Howard 2021-10-08 20:06:50 -06:00
parent 7ad047d503
commit 4277d5ad1a
Signed by: gavin
GPG Key ID: C08038BDF280D33E
2 changed files with 4 additions and 4 deletions

View File

@ -42,14 +42,14 @@
#
# For Linux, run two separate ones (in different checkouts), like so:
#
# scripts/release.sh 1 1 1 0 1 0 0 1 0 1 0 1 1 0
# scripts/release.sh 1 1 1 0 1 0 0 1 0 1 0 1 0 0
# scripts/release.sh 1 1 0 1 0 1 0 1 0 1 0 0 1 1
#
# Yes, I usually do sanitizers with Clang and Valgrind with GCC.
#
# To run sanitizers or Valgrind with generated tests, use the following:
#
# scripts/release.sh 1 1 1 0 1 0 0 1 0 1 0 1 1 0
# scripts/release.sh 1 1 1 0 1 0 0 1 0 1 0 1 0 0
# scripts/release.sh 1 1 0 1 0 1 0 1 0 1 0 0 1 1
#
# The reason I run history tests with GCC and not with Clang is because Clang

View File

@ -170,10 +170,10 @@ void bcl_free(void) {
bc_vm_atexit();
memset(&vm, 0, sizeof(BcVm));
BC_SIG_UNLOCK;
memset(&vm, 0, sizeof(BcVm));
assert(!vm.running && !vm.sig && !vm.sig_lock);
}