Initial pull request

Free or use stack variable