Avoid if (not NULL) free().

This fixes some COdeQL warnings.
This commit is contained in:
Milan Broz
2025-01-16 15:54:09 +01:00
parent 8364178b38
commit 36574dd114
4 changed files with 9 additions and 19 deletions

View File

@@ -356,12 +356,9 @@ static int fill_memory_blocks_mt(argon2_instance_t *instance) {
}
fail:
if (thread != NULL) {
free(thread);
}
if (thr_data != NULL) {
free(thr_data);
}
free(thread);
free(thr_data);
return rc;
}