cvar_free: also free the config var's name Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
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);
}