Bug #247 : Resolved memory leak issue