Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
a25df009
Commit
a25df009
authored
Mar 28, 2017
by
Patrick Steinhardt
Committed by
GitHub
Mar 28, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4180 from pks-t/pks/pass-blame-fix
Fix memory leaks
parents
1d39a603
fbdf2a79
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
3 deletions
+1
-3
src/blame_git.c
+0
-1
src/worktree.c
+1
-2
No files found.
src/blame_git.c
View file @
a25df009
...
@@ -547,7 +547,6 @@ static int pass_blame(git_blame *blame, git_blame__origin *origin, uint32_t opt)
...
@@ -547,7 +547,6 @@ static int pass_blame(git_blame *blame, git_blame__origin *origin, uint32_t opt)
if
(
porigin
->
blob
&&
origin
->
blob
&&
if
(
porigin
->
blob
&&
origin
->
blob
&&
!
git_oid_cmp
(
git_blob_id
(
porigin
->
blob
),
git_blob_id
(
origin
->
blob
)))
{
!
git_oid_cmp
(
git_blob_id
(
porigin
->
blob
),
git_blob_id
(
origin
->
blob
)))
{
error
=
pass_whole_blame
(
blame
,
origin
,
porigin
);
error
=
pass_whole_blame
(
blame
,
origin
,
porigin
);
goto
finish
;
origin_decref
(
porigin
);
origin_decref
(
porigin
);
goto
finish
;
goto
finish
;
}
}
...
...
src/worktree.c
View file @
a25df009
...
@@ -212,8 +212,7 @@ int git_worktree_open_from_repository(git_worktree **out, git_repository *repo)
...
@@ -212,8 +212,7 @@ int git_worktree_open_from_repository(git_worktree **out, git_repository *repo)
goto
out
;
goto
out
;
out:
out:
if
(
error
)
free
(
name
);
free
(
name
);
git_buf_free
(
&
parent
);
git_buf_free
(
&
parent
);
return
error
;
return
error
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment