summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2010-08-05 16:00:30 +0800
committerPeng Wu <alexepico@gmail.com>2010-08-05 16:00:30 +0800
commit8f9b41ba0be98e6a3caf71b5798bf38324db0676 (patch)
treefeb569395c91eb9ef937a81c8af5699c78c1e171 /tests
parent9d966927dfb0b3e91e42144e895d420fe4fc1192 (diff)
downloadlibpinyin-8f9b41ba0be98e6a3caf71b5798bf38324db0676.tar.gz
libpinyin-8f9b41ba0be98e6a3caf71b5798bf38324db0676.tar.xz
libpinyin-8f9b41ba0be98e6a3caf71b5798bf38324db0676.zip
fixes test_parser.cpp.
Diffstat (limited to 'tests')
-rw-r--r--tests/storage/test_parser.cpp6
1 files changed, 6 insertions, 0 deletions
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 <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include "pinyin_base.h"
@@ -144,6 +145,11 @@ int main (int argc, char * argv [])
}
printf("\n");
}
+
+ if (line)
+ free(line);
+
+ return 0;
}
/*