update handleRet by deleting old stack; memory still leaking