Free file_path correctly in both cases.
Fix handling of false positives during known duplicate search.