Fix bug when freeing the instruction information table

This commit is contained in:
XOR 2023-05-01 21:16:53 +02:00
parent 94dc063b8d
commit 22f0c00462

View file

@ -108,7 +108,7 @@ void destroy_instruction_information_hashtable(shash_hashtable_t *instruction_in
current_instr_config = config[i]; current_instr_config = config[i];
free(shash_get(current_instr_config.name, current_instr_config.name_length, instruction_information_table)); free(shash_get(current_instr_config.name, current_instr_config.name_length, instruction_information_table));
i++; i++;
} while (strncmp(current_instr_config.name, "", MAX_TOKEN_SIZE) != 0); } while (config[i].name != 0);
// Destroy the actual hashtable // Destroy the actual hashtable
shash_destroy_hashtable(instruction_information_table); shash_destroy_hashtable(instruction_information_table);