From acdc7cff2e31223aa91d9421b9b4edc53ca87869 Mon Sep 17 00:00:00 2001 From: Russell Belfer Date: Thu, 27 Mar 2014 15:29:17 -0700 Subject: [PATCH] Fix memory leak of submodule branch name --- src/submodule.c | 1 + 1 file changed, 1 insertion(+) 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); }