Fixed major memory leak
Fixed major memory leak

arocchi/Klampt,stevekuznetsov/Klampt,krishauser/Klampt,arocchi/Klampt,YilunZhou/Klampt,stevekuznetsov/Klampt,YilunZhou/Klampt,krishauser/Klampt,krishauser/Klampt,stevekuznetsov/Klampt,bbgw/Klampt,YilunZhou/Klampt,krishauser/Klampt,hpbader42/Klampt,YilunZhou/Klampt,hpbader42/Klampt,hpbader42/Klampt,arocchi/Klampt,arocchi/Klampt,stevekuznetsov/Klampt,krishauser/Klampt,hpbader42/Klampt,krishauser/Klampt,bbgw/Klampt,bbgw/Klampt,bbgw/Klampt,hpbader42/Klampt