Fixed crash caused by freeing and array twice.
Merge pull request #299 from tfili/extra-free-crash

Fixed crash caused by freeing and array twice.