summaryrefslogtreecommitdiffstats
path: root/utils/segment/ngseg.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-04-15 13:45:30 +0800
committerPeng Wu <alexepico@gmail.com>2013-04-15 13:48:10 +0800
commitfc4779bafe885a7b43dc82cba3543b8449a8d5ff (patch)
treecc0ce47b5e3a83497147b101fd7309e17a6bffdf /utils/segment/ngseg.cpp
parent196601b5a3b8a2db0c520b03e6cde66904476bb4 (diff)
downloadlibpinyin-fc4779bafe885a7b43dc82cba3543b8449a8d5ff.tar.gz
libpinyin-fc4779bafe885a7b43dc82cba3543b8449a8d5ff.tar.xz
libpinyin-fc4779bafe885a7b43dc82cba3543b8449a8d5ff.zip
update spseg.cpp
Diffstat (limited to 'utils/segment/ngseg.cpp')
-rw-r--r--utils/segment/ngseg.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/segment/ngseg.cpp b/utils/segment/ngseg.cpp
index 5fb2a42..fee7449 100644
--- a/utils/segment/ngseg.cpp
+++ b/utils/segment/ngseg.cpp
@@ -246,6 +246,8 @@ int main(int argc, char * argv[]){
/* print extra enter */
if ( gen_extra_enter )
fprintf(output, "%d \n", null_token);
+
+ g_free(sentence);
}
phrase_index.destroy_tokens(tokens);