Fix bug when freeing the instruction information table
This commit is contained in:
parent
94dc063b8d
commit
22f0c00462
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue