We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
_scratch_destroy
VERIFY_CHECK
2 parents cd47033 + 1827c9b commit accadc9Copy full SHA for accadc9
src/scratch_impl.h
@@ -25,11 +25,11 @@ static secp256k1_scratch* secp256k1_scratch_create(const secp256k1_callback* err
25
26
static void secp256k1_scratch_destroy(const secp256k1_callback* error_callback, secp256k1_scratch* scratch) {
27
if (scratch != NULL) {
28
- VERIFY_CHECK(scratch->alloc_size == 0); /* all checkpoints should be applied */
29
if (secp256k1_memcmp_var(scratch->magic, "scratch", 8) != 0) {
30
secp256k1_callback_call(error_callback, "invalid scratch space");
31
return;
32
}
+ VERIFY_CHECK(scratch->alloc_size == 0); /* all checkpoints should be applied */
33
memset(scratch->magic, 0, sizeof(scratch->magic));
34
free(scratch);
35
0 commit comments