mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 20:51:11 +00:00
Fix memory leak of submodule branch name
This commit is contained in:
parent
add8db06f9
commit
acdc7cff2e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user