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/stack.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include/stack.h') 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 -- cgit