eatgv: Check memory allocation