diff --git a/src/common/sha2/sha2_c.c b/src/common/sha2/sha2_c.c index 9db9f8cf7..09eea372d 100644 --- a/src/common/sha2/sha2_c.c +++ b/src/common/sha2/sha2_c.c @@ -766,7 +766,7 @@ void oqs_sha2_sha256_inc_finalize_c(uint8_t *out, sha256ctx *state, const uint8_ if (new_inlen == inlen) { new_in = in; } else { //Combine incremental data with final input - tmp_in = OQS_MEM_secure_checked_malloc(tmp_len); + tmp_in = OQS_MEM_checked_malloc(tmp_len); if (tmp_in == NULL) { return; // Handle allocation failure }