Commit Diff


commit - dc2c33447cc70129447c35401081e46c06e66d38
commit + f357f78c8f257cd1c3f99730dfc9d2f9aa71f726
blob - f1564fe9067f8708e5f87d50539aa46985cdc197
blob + cdcbeb71f9090dc6023894262edf4802c8cb907c
--- got/got.c
+++ got/got.c
@@ -8522,6 +8522,7 @@ done:
 		if (error == NULL)
 			error = pack_err;
 	}
+	got_pathlist_free(&paths, GOT_PATHLIST_FREE_PATH);
 	free(path);
 	free(cwd);
 	return error;
@@ -8873,6 +8874,7 @@ done:
 		if (error == NULL)
 			error = pack_err;
 	}
+	got_pathlist_free(&paths, GOT_PATHLIST_FREE_PATH);
 	free(cwd);
 	free(id_str);
 	free(gitconfig_path);