You want to return memory in bytes, not KB here.