staticnested_2x1nt_rf08s: fix malloc bug

This commit is contained in:
Philippe Teuwen 2024-08-02 00:10:52 +02:00
commit 045a4c7fc6

View file

@ -150,7 +150,7 @@ int main(int argc, char *const argv[]) {
} }
keys2 = (uint64_t*)malloc(keycount2 * sizeof(uint64_t)); keys2 = (uint64_t*)malloc(keycount2 * sizeof(uint64_t));
filter_keys2 = (uint8_t*)calloc(keycount1, sizeof(uint8_t)); filter_keys2 = (uint8_t*)calloc(keycount2, sizeof(uint8_t));
if ((keys2 == NULL)||(filter_keys2 == NULL)) { if ((keys2 == NULL)||(filter_keys2 == NULL)) {
perror("Failed to allocate memory"); perror("Failed to allocate memory");
fclose(fptr); fclose(fptr);