summaryrefslogtreecommitdiff
path: root/src/include/stack.h
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2023-01-08 15:39:19 -0800
committerPreston Pan <preston@nullring.xyz>2023-01-08 15:39:19 -0800
commit19367a27472a06634424e56c1eb21e4f53da4e9e (patch)
treefc58a08d36d451bdd1e7143a7358ac8a374355f7 /src/include/stack.h
parent87d82ead963c24d84a4f6e417b96b9bf73d132bb (diff)
fixed invalid read; some memory leakage fixed but not completely
Diffstat (limited to 'src/include/stack.h')
-rw-r--r--src/include/stack.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/stack.h b/src/include/stack.h
index 6b0ed9a..e5630fc 100644
--- a/src/include/stack.h
+++ b/src/include/stack.h
@@ -15,4 +15,6 @@ hash_table_t *stack_peek(stack_t *s);
hash_table_t *stack_pop(stack_t *s);
bool is_empty(stack_t *s);
+
+void stack_free(stack_t *s);
#endif