Fix memory leak of submodule branch name

This commit is contained in:
Russell Belfer 2014-03-27 15:29:17 -07:00
parent add8db06f9
commit acdc7cff2e

View File

@ -1126,6 +1126,7 @@ static void submodule_release(git_submodule *sm)
git__free(sm->path);
git__free(sm->name);
git__free(sm->url);
git__free(sm->branch);
git__memzero(sm, sizeof(*sm));
git__free(sm);
}