fix a leak in kmp
fix a leak in kmp

xtaci/algorithms,dumubuchenglin/algorithms,hengwusanren/algorithms,lanbing510/Algorithms,zhenglaizhang/algorithms,NoSmartNoMan/algorithms,xmfbit/algorithms,allengaller/algorithms,hengwusanren/algorithms,sigma-random/algorithms,fw1121/algorithms,M4573R/algorithms-1,shijiaxing/algorithms,dumubuchenglin/algorithms,noname007/algorithms,fengzhyuan/algorithms,shijiaxing/algorithms,jacklicn/algorithms,zhenglaizhang/algorithms,ashwini0529/algorithms-1,sigma-random/algorithms,tempbottle/algorithms,fengzhyuan/algorithms,ee08b397/algorithms-1,lanbing510/Algorithms,M4573R/algorithms-1,qvex/algorithms,greyg00s/algorithms,switchkiller/algorithms,tempbottle/algorithms,greyg00s/algorithms,ashwini0529/algorithms-1,qvex/algorithms,fw1121/algorithms,jacklicn/algorithms,xtaci/algorithms,NoSmartNoMan/algorithms,noname007/algorithms,allengaller/algorithms,ee08b397/algorithms-1,switchkiller/algorithms,xmfbit/algorithms