diff options
author | Preston Pan <preston@nullring.xyz> | 2023-01-08 15:39:19 -0800 |
---|---|---|
committer | Preston Pan <preston@nullring.xyz> | 2023-01-08 15:39:19 -0800 |
commit | 19367a27472a06634424e56c1eb21e4f53da4e9e (patch) | |
tree | fc58a08d36d451bdd1e7143a7358ac8a374355f7 /src/include/hash_table.h | |
parent | 87d82ead963c24d84a4f6e417b96b9bf73d132bb (diff) |
fixed invalid read; some memory leakage fixed but not completely
Diffstat (limited to 'src/include/hash_table.h')
-rw-r--r-- | src/include/hash_table.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/hash_table.h b/src/include/hash_table.h index 833daee..b70331e 100644 --- a/src/include/hash_table.h +++ b/src/include/hash_table.h @@ -36,6 +36,8 @@ bool sl_list_exists(sl_list_t *l, char *key); void sl_list_free(sl_list_t *l); +void sl_list_free_some(sl_list_t *l); + hash_table_t *init_hash_table(int size); void hash_table_add(hash_table_t *h, char *key, ast_t *value); @@ -48,4 +50,5 @@ unsigned long hash(char *key, int size); void hash_table_free(hash_table_t *h); +void hash_table_free_some(hash_table_t *h); #endif |