free obj
This commit is contained in:
parent
e45eac89b8
commit
512a31e81f
1 changed files with 3 additions and 0 deletions
3
stagit.c
3
stagit.c
|
@ -866,6 +866,8 @@ writerefs(FILE *fp)
|
|||
relpath = "../";
|
||||
|
||||
commitinfo_free(ci);
|
||||
git_object_free(obj);
|
||||
obj = NULL;
|
||||
git_reference_free(dref);
|
||||
dref = NULL;
|
||||
}
|
||||
|
@ -875,6 +877,7 @@ writerefs(FILE *fp)
|
|||
}
|
||||
|
||||
err:
|
||||
git_object_free(obj);
|
||||
git_reference_free(dref);
|
||||
|
||||
for (i = 0; i < refcount; i++)
|
||||
|
|
Loading…
Reference in a new issue