Commit 5552237686dae90fb9c22f0088de488b48654828

Yichao Yu 2017-04-29T12:28:35

Do not free config when creating remote The regression was introduced in 22261344de18b3cc60ee6937468d66a6a6a28875

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/remote.c b/src/remote.c
index d3132f7..15752ab 100644
--- a/src/remote.c
+++ b/src/remote.c
@@ -260,7 +260,6 @@ on_error:
 	if (error)
 		git_remote_free(remote);
 
-	git_config_free(config);
 	git_buf_free(&canonical_url);
 	git_buf_free(&var);
 	return error;