From 19367a27472a06634424e56c1eb21e4f53da4e9e Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Sun, 8 Jan 2023 15:39:19 -0800 Subject: fixed invalid read; some memory leakage fixed but not completely --- src/include/hash_table.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include/hash_table.h') 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 -- cgit