echo.cc reuse memory on stack but not heap