Commit e15afc8e7cf6f6508d402134e0df772c4012ce77

Carlos Martín Nieto 2011-03-29T17:37:03

cvar_free: also free the config var's name Signed-off-by: Carlos Martín Nieto <cmn@elego.de>

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/config.c b/src/config.c
index 5c500c4..8d01d7b 100644
--- a/src/config.c
+++ b/src/config.c
@@ -42,6 +42,7 @@ static void cvar_free(git_cvar *var)
 	if(var->type == GIT_VAR_STR)
 		free(var->value.string);
 
+	free(var->name);
 	free(var);
 }