From 4f93a530e1289925c606feb47c06044500f71f93 Mon Sep 17 00:00:00 2001 From: c9s Date: Sun, 1 Jun 2014 01:26:36 +0800 Subject: [PATCH] assert free --- src/token.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/token.c b/src/token.c index c646a4a..e2c6404 100644 --- a/src/token.c +++ b/src/token.c @@ -24,6 +24,7 @@ str_array * str_array_create(int cap) { } void str_array_free(str_array *l) { + assert(l); for ( int i = 0; i < l->len ; i++ ) { if (l->tokens[ i ]) { zfree(l->tokens[i]);