Remove needless free() because filepath isn't malloc
Support unit testing by Cutter