From 292b082c78cef795cc9c9f1efe43e75c7c5a5777 Mon Sep 17 00:00:00 2001 From: Ricky Su Date: Fri, 11 Sep 2015 15:14:07 +0800 Subject: [PATCH] fix memory leak --- src/token.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/token.c b/src/token.c index caab490..26792b7 100644 --- a/src/token.c +++ b/src/token.c @@ -30,6 +30,7 @@ void str_array_free(str_array *l) { zfree(l->tokens[i]); } } + zfree(l->tokens); zfree(l); }