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
542a7de0
Commit
542a7de0
authored
May 14, 2015
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
local: plug a leak in the progress reporting
parent
4a6a6746
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
src/transports/local.c
+5
-1
No files found.
src/transports/local.c
View file @
542a7de0
...
@@ -474,6 +474,7 @@ static int local_counting(int stage, unsigned int current, unsigned int total, v
...
@@ -474,6 +474,7 @@ static int local_counting(int stage, unsigned int current, unsigned int total, v
{
{
git_buf
progress_info
=
GIT_BUF_INIT
;
git_buf
progress_info
=
GIT_BUF_INIT
;
transport_local
*
t
=
payload
;
transport_local
*
t
=
payload
;
int
error
;
if
(
!
t
->
progress_cb
)
if
(
!
t
->
progress_cb
)
return
0
;
return
0
;
...
@@ -493,7 +494,10 @@ static int local_counting(int stage, unsigned int current, unsigned int total, v
...
@@ -493,7 +494,10 @@ static int local_counting(int stage, unsigned int current, unsigned int total, v
if
(
git_buf_oom
(
&
progress_info
))
if
(
git_buf_oom
(
&
progress_info
))
return
-
1
;
return
-
1
;
return
t
->
progress_cb
(
git_buf_cstr
(
&
progress_info
),
git_buf_len
(
&
progress_info
),
t
->
message_cb_payload
);
error
=
t
->
progress_cb
(
git_buf_cstr
(
&
progress_info
),
git_buf_len
(
&
progress_info
),
t
->
message_cb_payload
);
git_buf_free
(
&
progress_info
);
return
error
;
}
}
static
int
local_download_pack
(
static
int
local_download_pack
(
...
...
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