summaryrefslogtreecommitdiff
path: root/src/submodule.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2014-03-27 15:29:17 -0700
committerRussell Belfer <rb@github.com>2014-03-27 15:29:17 -0700
commitacdc7cff2e31223aa91d9421b9b4edc53ca87869 (patch)
tree9f2baa1898162ad40eb5d18eef8cc88eeb83424c /src/submodule.c
parentadd8db06f91f1dc9acc7f20f8229f746041de2c8 (diff)
downloadlibgit2-acdc7cff2e31223aa91d9421b9b4edc53ca87869.tar.gz
Fix memory leak of submodule branch name
Diffstat (limited to 'src/submodule.c')
-rw-r--r--src/submodule.c1
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);
}