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
b31795ef
Commit
b31795ef
authored
May 06, 2021
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: clean up memory leaks
parent
525516b4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
src/transports/winhttp.c
+1
-0
tests/path/core.c
+3
-0
tests/refs/basic.c
+1
-0
No files found.
src/transports/winhttp.c
View file @
b31795ef
...
...
@@ -859,6 +859,7 @@ on_error:
if
(
error
<
0
)
winhttp_close_connection
(
t
);
git_buf_dispose
(
&
ua
);
git_buf_dispose
(
&
ipv6
);
git__free
(
wide_host
);
git__free
(
wide_ua
);
...
...
tests/path/core.c
View file @
b31795ef
...
...
@@ -361,6 +361,9 @@ void test_path_core__validate_workdir_with_core_longpath(void)
/* set core.longpaths explicitly off */
cl_git_pass
(
git_config_set_bool
(
config
,
"core.longpaths"
,
0
));
cl_must_fail
(
git_path_validate_workdir
(
repo
,
"/c/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/aaaaaaaaa/longer_than_260.txt"
));
git_config_free
(
config
);
git_repository_free
(
repo
);
#endif
}
...
...
tests/refs/basic.c
View file @
b31795ef
...
...
@@ -80,5 +80,6 @@ void test_refs_basic__longpaths(void)
git_reference_free
(
one
);
git_reference_free
(
two
);
git_buf_dispose
(
&
refname
);
#endif
}
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