Fixes memory leak in dev stdout