From 8f9b41ba0be98e6a3caf71b5798bf38324db0676 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 5 Aug 2010 16:00:30 +0800 Subject: fixes test_parser.cpp. --- tests/storage/test_parser.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/storage/test_parser.cpp') diff --git a/tests/storage/test_parser.cpp b/tests/storage/test_parser.cpp index 9ea9c2b..70b34ea 100644 --- a/tests/storage/test_parser.cpp +++ b/tests/storage/test_parser.cpp @@ -24,6 +24,7 @@ */ #include +#include #include #include "pinyin_base.h" @@ -144,6 +145,11 @@ int main (int argc, char * argv []) } printf("\n"); } + + if (line) + free(line); + + return 0; } /* -- cgit