diff options
author | Russell Belfer <rb@github.com> | 2014-03-27 15:29:17 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2014-03-27 15:29:17 -0700 |
commit | acdc7cff2e31223aa91d9421b9b4edc53ca87869 (patch) | |
tree | 9f2baa1898162ad40eb5d18eef8cc88eeb83424c /src/submodule.c | |
parent | add8db06f91f1dc9acc7f20f8229f746041de2c8 (diff) | |
download | libgit2-acdc7cff2e31223aa91d9421b9b4edc53ca87869.tar.gz |
Fix memory leak of submodule branch name
Diffstat (limited to 'src/submodule.c')
-rw-r--r-- | src/submodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/submodule.c b/src/submodule.c index 0a3762fab..e1500b847 100644 --- a/src/submodule.c +++ b/src/submodule.c @@ -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); } |