aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-07-19 16:40:18 -0700
committerJunio C Hamano <gitster@pobox.com>2022-07-19 16:40:18 -0700
commit7c683389d689c85e66d9c2ce1fba198da4325e3a (patch)
tree7c58248f9bc29eb0e3bbc9f42e49b840afc6ce9a
parentMerge branch 'rs/cocci-array-copy' (diff)
parentdiff-files: move misplaced cleanup label (diff)
downloadgit-7c683389d689c85e66d9c2ce1fba198da4325e3a.tar.gz
git-7c683389d689c85e66d9c2ce1fba198da4325e3a.zip
Merge branch 'jk/diff-files-cleanup-fix'
An earlier attempt to plug leaks placed a clean-up label to jump to at a bogus place, which as been corrected. * jk/diff-files-cleanup-fix: diff-files: move misplaced cleanup label
-rw-r--r--builtin/diff-files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/diff-files.c b/builtin/diff-files.c
index 2bfaf9ba7a..92cf6e1e92 100644
--- a/builtin/diff-files.c
+++ b/builtin/diff-files.c
@@ -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;
}