Call correct free()
Merge pull request #83 from bjori/patch-2

Call correct free()