discover/file: Fix invalid free vs talloc_free