fixed memory leak on input parameters
Merge pull request #133 from Sage/master

fixed memory leak on input parameters