Update scratch_impl.h patch file

To mirror recent changes to the `scratch_impl.h` file update the patch
file.
This commit is contained in:
Tobin C. Harding 2022-12-19 15:04:14 +11:00
parent 2fccf8dccc
commit 2d4aacc4ad
1 changed files with 1 additions and 1 deletions

View File

@ -14,11 +14,11 @@
< <
< static void secp256k1_scratch_destroy(const secp256k1_callback* error_callback, secp256k1_scratch* scratch) { < static void secp256k1_scratch_destroy(const secp256k1_callback* error_callback, secp256k1_scratch* scratch) {
< if (scratch != NULL) { < if (scratch != NULL) {
< VERIFY_CHECK(scratch->alloc_size == 0); /* all checkpoints should be applied */
< if (secp256k1_memcmp_var(scratch->magic, "scratch", 8) != 0) { < if (secp256k1_memcmp_var(scratch->magic, "scratch", 8) != 0) {
< secp256k1_callback_call(error_callback, "invalid scratch space"); < secp256k1_callback_call(error_callback, "invalid scratch space");
< return; < return;
< } < }
< VERIFY_CHECK(scratch->alloc_size == 0); /* all checkpoints should be applied */
< memset(scratch->magic, 0, sizeof(scratch->magic)); < memset(scratch->magic, 0, sizeof(scratch->magic));
< free(scratch); < free(scratch);
< } < }