typo
bug fix; return valid memory