mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-03 00:22:21 +00:00
Fix possible free'ing of unitialized pointer in error case
This commit is contained in:
parent
3a5e8faee7
commit
132c2db6a9
@ -29,7 +29,7 @@ static int create_branch(
|
|||||||
const char *name)
|
const char *name)
|
||||||
{
|
{
|
||||||
git_commit *head_obj = NULL;
|
git_commit *head_obj = NULL;
|
||||||
git_reference *branch_ref;
|
git_reference *branch_ref = NULL;
|
||||||
int error;
|
int error;
|
||||||
|
|
||||||
/* Find the target commit */
|
/* Find the target commit */
|
||||||
|
Loading…
Reference in New Issue
Block a user