Message ID | 20210725130830.5145-10-andrzej@ahunt.org (mailing list archive) |
---|---|
State | Accepted |
Commit | ed3c566d97f225e9552a6179c2a9328bdba6af73 |
Headers | show |
Series | [v2,01/12] fmt-merge-msg: free newly allocated temporary strings when done | expand |
diff --git a/builtin/mv.c b/builtin/mv.c index 3fccdcb645..c2f96c8e89 100644 --- a/builtin/mv.c +++ b/builtin/mv.c @@ -303,5 +303,10 @@ int cmd_mv(int argc, const char **argv, const char *prefix) COMMIT_LOCK | SKIP_IF_UNCHANGED)) die(_("Unable to write new index file")); + string_list_clear(&src_for_dst, 0); + UNLEAK(source); + UNLEAK(dest_path); + free(submodule_gitfile); + free(modes); return 0; }