diff options
author | Peng Wu <alexepico@gmail.com> | 2010-08-05 16:00:30 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2010-08-05 16:00:30 +0800 |
commit | 8f9b41ba0be98e6a3caf71b5798bf38324db0676 (patch) | |
tree | feb569395c91eb9ef937a81c8af5699c78c1e171 /tests/storage | |
parent | 9d966927dfb0b3e91e42144e895d420fe4fc1192 (diff) | |
download | libpinyin-8f9b41ba0be98e6a3caf71b5798bf38324db0676.tar.gz libpinyin-8f9b41ba0be98e6a3caf71b5798bf38324db0676.tar.xz libpinyin-8f9b41ba0be98e6a3caf71b5798bf38324db0676.zip |
fixes test_parser.cpp.
Diffstat (limited to 'tests/storage')
-rw-r--r-- | tests/storage/test_parser.cpp | 6 |
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; } /* |