Commit Diff


commit - c2f5b3e63df878c687928a616ef24e87131a795e
commit + f57c91b34d24c53c184e2840aa0f616a96d4f764
blob - b32ea7c37a6e4abe3ed85220602e1e8e24af6dc0
blob + 90f25d11eb70d4f6a5db417cbf29dfcad7751db4
--- got/got.c
+++ got/got.c
@@ -5629,6 +5629,7 @@ cmd_diff(int argc, char *argv[])
 	error = printfile(outfile);
 
 done:
+	free(cwd);
 	free(labels[0]);
 	free(labels[1]);
 	free(ids[0]);
@@ -13794,6 +13795,7 @@ cmd_merge(int argc, char *argv[])
 
 	}
 done:
+	free(cwd);
 	free(gitconfig_path);
 	free(id_str);
 	free(merge_commit_id);
@@ -14447,6 +14449,7 @@ cmd_cat(int argc, char *argv[])
 		id = NULL;
 	}
 done:
+	free(cwd);
 	free(label);
 	free(id);
 	free(commit_id);