Custom malloc/free implementation in static buffer.