yanyiwu / gojieba

"结巴"中文分词的Golang版本
MIT License
2.45k stars 303 forks source link

调用完jieba.Extract后defer jieba.Free() 过一会就会报错退出程序 #119

Open Mlegbder opened 3 months ago

Mlegbder commented 3 months ago

_go_build_womata_servicesys(79285,0x173a4b000) malloc: *** error for object 0x60000a7dc900: pointer being freed was not allocated go_build_womata_service_sys(79285,0x173a4b000) malloc: *** set a breakpoint in malloc_error_break to debug

yanyiwu commented 3 months ago

https://github.com/yanyiwu/gojieba-demo/blob/main/demo.go 我自己测试是ok的。 你是重复Free了吗?