Merge branch 'jk/diff-files-cleanup-fix' into maint

An earlier attempt to plug leaks placed a clean-up label to jump to
at a bogus place, which as been corrected.
source: <Ys0c0ePxPOqZ/5ck@coredump.intra.peff.net>

* jk/diff-files-cleanup-fix:
  diff-files: move misplaced cleanup label
This commit is contained in:
Junio C Hamano 2022-07-27 13:00:27 -07:00
commit 494d31e9d6

View File

@ -80,9 +80,9 @@ int cmd_diff_files(int argc, const char **argv, const char *prefix)
result = -1;
goto cleanup;
}
cleanup:
result = run_diff_files(&rev, options);
result = diff_result_code(&rev.diffopt, result);
cleanup:
release_revisions(&rev);
return result;
}