Commit Diff


commit - 09382ca03134b83cfde50893a20195e2314ddb31
commit + 0f24033e38cc689c7c86333f00269a799660dd38
blob - 7afbff165a8d83cc740034cde9d4b97f2afeb3b4
blob + d516b6ee8445681a1f22e237b7601a2852a9b54e
--- got/got.c
+++ got/got.c
@@ -5628,6 +5628,7 @@ cmd_diff(int argc, char *argv[])
 	error = printfile(outfile);
 
 done:
+	free(cwd);
 	free(labels[0]);
 	free(labels[1]);
 	free(ids[0]);
@@ -13793,6 +13794,7 @@ cmd_merge(int argc, char *argv[])
 
 	}
 done:
+	free(cwd);
 	free(gitconfig_path);
 	free(id_str);
 	free(merge_commit_id);
@@ -14446,6 +14448,7 @@ cmd_cat(int argc, char *argv[])
 		id = NULL;
 	}
 done:
+	free(cwd);
 	free(label);
 	free(id);
 	free(commit_id);