Commit Diff


commit - 2aea6fc2c2c95ba4968b598247e00edb6f91048b
commit + 3506a2b1c255a8d362e1cce0a8b594c9fb17bb37
blob - 06e066fceda7062b02b365d0bb490cd359852ca7
blob + faeeebdc43c415c926a2a57fa1dc6560f7471a7b
--- got/got.c
+++ got/got.c
@@ -10146,6 +10146,7 @@ cmd_cherrypick(int argc, char *argv[])
 	}
 	print_merge_progress_stats(&upa);
 done:
+	free(cwd);
 	if (commit)
 		got_object_commit_close(commit);
 	free(commit_id_str);
@@ -10290,6 +10291,7 @@ cmd_backout(int argc, char *argv[])
 	}
 	print_merge_progress_stats(&upa);
 done:
+	free(cwd);
 	if (commit)
 		got_object_commit_close(commit);
 	free(commit_id_str);