diff options
Diffstat (limited to 'tests')
-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; } /* |