Fix `path` leak
Merge pull request #6 from clibs/fix/memory-leaks

Fix `path` leak