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
9faf36a6
Commit
9faf36a6
authored
Jun 14, 2018
by
Nika Layzell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mailmap: git_buf_free => git_buf_dispose
parent
d91d2968
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
src/mailmap.c
+9
-9
tests/mailmap/parsing.c
+1
-1
No files found.
src/mailmap.c
View file @
9faf36a6
...
...
@@ -265,10 +265,10 @@ int git_mailmap_add_buffer(git_mailmap *mm, const char *buf, size_t len)
}
cleanup:
git_buf_
fre
e
(
&
real_name
);
git_buf_
fre
e
(
&
real_email
);
git_buf_
fre
e
(
&
replace_name
);
git_buf_
fre
e
(
&
replace_email
);
git_buf_
dispos
e
(
&
real_name
);
git_buf_
dispos
e
(
&
real_email
);
git_buf_
dispos
e
(
&
replace_name
);
git_buf_
dispos
e
(
&
replace_email
);
return
error
;
}
...
...
@@ -313,7 +313,7 @@ static int mailmap_add_blob(
goto
cleanup
;
cleanup:
git_buf_
fre
e
(
&
content
);
git_buf_
dispos
e
(
&
content
);
git_blob_free
(
blob
);
git_object_free
(
object
);
return
error
;
...
...
@@ -340,8 +340,8 @@ static int mailmap_add_file_ondisk(
goto
cleanup
;
cleanup:
git_buf_
fre
e
(
&
fullpath
);
git_buf_
fre
e
(
&
content
);
git_buf_
dispos
e
(
&
fullpath
);
git_buf_
dispos
e
(
&
content
);
return
error
;
}
...
...
@@ -386,8 +386,8 @@ static void mailmap_add_from_repository(git_mailmap *mm, git_repository *repo)
if
(
path
!=
NULL
)
mailmap_add_file_ondisk
(
mm
,
path
,
repo
);
git_buf_
fre
e
(
&
rev_buf
);
git_buf_
fre
e
(
&
path_buf
);
git_buf_
dispos
e
(
&
rev_buf
);
git_buf_
dispos
e
(
&
path_buf
);
git_config_free
(
config
);
}
...
...
tests/mailmap/parsing.c
View file @
9faf36a6
...
...
@@ -88,7 +88,7 @@ void test_mailmap_parsing__windows_string(void)
git_buf_text_lf_to_crlf
(
&
winbuf
,
&
unixbuf
);
cl_git_pass
(
git_mailmap_from_buffer
(
&
g_mailmap
,
winbuf
.
ptr
,
winbuf
.
size
));
git_buf_
fre
e
(
&
winbuf
);
git_buf_
dispos
e
(
&
winbuf
);
/* We should have parsed all of the entries */
check_mailmap_entries
(
g_mailmap
,
entries
,
ARRAY_SIZE
(
entries
));
...
...
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