Commit Diff


commit - 0ff2bf469bd8c4cf24498832b2937041076a7d7f
commit + 26ac815fc44811dc1fa663baa02c1a65836dd649
blob - 9f8fd66bdc02da906718a52f5b0e4e0bb496cd15
blob + bd2ea5938e70b3a5c5041becda02cdc86e73c4b3
--- libexec/got-read-gotconfig/gotconfig.h
+++ libexec/got-read-gotconfig/gotconfig.h
@@ -16,7 +16,6 @@
  */
 
 struct fetch_repo {
-	char	*fetch_name;
 	char	*fetch_repository;
 	char	*fetch_server;
 	char	*fetch_protocol;
@@ -25,7 +24,6 @@ struct fetch_repo {
 };
 
 struct send_repo {
-	char	*send_name;
 	char	*send_repository;
 	char	*send_server;
 	char	*send_protocol;
blob - c3899d0790338ad76089f7e3baab49aefa4bc790
blob + 32725fd8694ebfb52f55ac914f0be32ea01f317c
--- libexec/got-read-gotconfig/parse.y
+++ libexec/got-read-gotconfig/parse.y
@@ -839,13 +839,11 @@ gotconfig_free(struct gotconfig *conf)
 		remote = TAILQ_FIRST(&conf->remotes);
 		TAILQ_REMOVE(&conf->remotes, remote, entry);
 		if (remote->fetch_repo != NULL) {
-			free(remote->fetch_repo->fetch_name);
 			free(remote->fetch_repo->fetch_repository);
 			free(remote->fetch_repo->fetch_server);
 			free(remote->fetch_repo->fetch_protocol);
 		}
 		if (remote->send_repo != NULL) {
-			free(remote->send_repo->send_name);
 			free(remote->send_repo->send_repository);
 			free(remote->send_repo->send_server);
 			free(remote->send_repo->send_protocol);