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
3451c871
Commit
3451c871
authored
Jun 30, 2015
by
Edward Thomson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3271 from jeffhostetler/more_leaks
memory leak refspec.c
parents
7bfdd1c2
64e6b5b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/refspec.c
+3
-0
No files found.
src/refspec.c
View file @
3451c871
...
...
@@ -142,6 +142,7 @@ int git_refspec__parse(git_refspec *refspec, const char *input, bool is_fetch)
giterr_set
(
GITERR_INVALID
,
"'%s' is not a valid refspec."
,
input
);
git_refspec__free
(
refspec
);
return
-
1
;
}
...
...
@@ -153,6 +154,8 @@ void git_refspec__free(git_refspec *refspec)
git__free
(
refspec
->
src
);
git__free
(
refspec
->
dst
);
git__free
(
refspec
->
string
);
memset
(
refspec
,
0x0
,
sizeof
(
git_refspec
));
}
const
char
*
git_refspec_src
(
const
git_refspec
*
refspec
)
...
...
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