From 21429ea473f177e998e11355d0cbcce8af43980f Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Fri, 6 Nov 2015 14:14:49 +0100 Subject: [PATCH] added stack_free --- stack.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stack.c b/stack.c index 2ab2791..be0b696 100644 --- a/stack.c +++ b/stack.c @@ -66,5 +66,8 @@ int main( int argc, char *argv[] ) { printf("%d\n",stack_pop(s)); } + stack_free(s); + s = NULL; + return 0; }