Commit a71331ebc40b445a58d73a1fe3fb2dc21665c09c

Daniel Rodríguez Troitiño 2013-10-31T23:41:48

Fix memory leaks.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/config_file.c b/src/config_file.c
index 8c3d812..5f36a3f 100644
--- a/src/config_file.c
+++ b/src/config_file.c
@@ -615,6 +615,8 @@ static int config_delete_multivar(git_config_backend *cfg, const char *name, con
 		cvar_free(to_delete[to_delete_idx]);
 
 	git__free(key);
+	git__free(to_delete);
+	regfree(&preg);
 	return result;
 }