cvar_free: also free the config var's name

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
This commit is contained in:
Carlos Martín Nieto 2011-03-29 17:37:03 +02:00
parent 6d7bb4e039
commit e15afc8e7c

View File

@ -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);
}