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
ee3baed1
Unverified
Commit
ee3baed1
authored
Jul 15, 2018
by
Carlos Martín Nieto
Committed by
GitHub
Jul 15, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4724 from libgit2/cmn/allocator-init-order
alloc: don't overwrite allocator during init if set
parents
2510268a
19007b19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/alloc.c
+7
-0
No files found.
src/alloc.c
View file @
ee3baed1
...
...
@@ -17,6 +17,13 @@ git_allocator git__allocator;
int
git_allocator_global_init
(
void
)
{
/*
* We don't want to overwrite any allocator which has been set before
* the init function is called.
*/
if
(
git__allocator
.
gmalloc
!=
NULL
)
return
0
;
#if defined(GIT_MSVC_CRTDBG)
return
git_win32_crtdbg_init_allocator
(
&
git__allocator
);
#else
...
...
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