Complying memalloc to what it's supposed to do