Spotted another potential memleak
Merge pull request #1 from vwarg/ics

Spotted another potential memleak