Add free to fix issue #1