Fixed memory leakage issue
Merge pull request #12 from rkophs/memLeaks

Fixed memory leakage issue