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
3aa8401a
Unverified
Commit
3aa8401a
authored
Feb 21, 2019
by
Patrick Steinhardt
Committed by
GitHub
Feb 21, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4992 from pks-t/pks/cache-dispose
cache: fix misnaming of `git_cache_free`
parents
68ba2e8d
bbdcd450
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
src/cache.c
+1
-1
src/cache.h
+1
-1
src/odb.c
+2
-2
src/repository.c
+2
-2
No files found.
src/cache.c
View file @
3aa8401a
...
...
@@ -101,7 +101,7 @@ void git_cache_clear(git_cache *cache)
git_rwlock_wrunlock
(
&
cache
->
lock
);
}
void
git_cache_
fre
e
(
git_cache
*
cache
)
void
git_cache_
dispos
e
(
git_cache
*
cache
)
{
git_cache_clear
(
cache
);
git_oidmap_free
(
cache
->
map
);
...
...
src/cache.h
View file @
3aa8401a
...
...
@@ -43,7 +43,7 @@ extern git_atomic_ssize git_cache__current_storage;
int
git_cache_set_max_object_size
(
git_object_t
type
,
size_t
size
);
int
git_cache_init
(
git_cache
*
cache
);
void
git_cache_
fre
e
(
git_cache
*
cache
);
void
git_cache_
dispos
e
(
git_cache
*
cache
);
void
git_cache_clear
(
git_cache
*
cache
);
void
*
git_cache_store_raw
(
git_cache
*
cache
,
git_odb_object
*
entry
);
...
...
src/odb.c
View file @
3aa8401a
...
...
@@ -448,7 +448,7 @@ int git_odb_new(git_odb **out)
return
-
1
;
}
if
(
git_vector_init
(
&
db
->
backends
,
4
,
backend_sort_cmp
)
<
0
)
{
git_cache_
fre
e
(
&
db
->
own_cache
);
git_cache_
dispos
e
(
&
db
->
own_cache
);
git__free
(
db
);
return
-
1
;
}
...
...
@@ -686,7 +686,7 @@ static void odb_free(git_odb *db)
}
git_vector_free
(
&
db
->
backends
);
git_cache_
fre
e
(
&
db
->
own_cache
);
git_cache_
dispos
e
(
&
db
->
own_cache
);
git__memzero
(
db
,
sizeof
(
*
db
));
git__free
(
db
);
...
...
src/repository.c
View file @
3aa8401a
...
...
@@ -160,7 +160,7 @@ void git_repository_free(git_repository *repo)
git_repository__cleanup
(
repo
);
git_cache_
fre
e
(
&
repo
->
objects
);
git_cache_
dispos
e
(
&
repo
->
objects
);
git_diff_driver_registry_free
(
repo
->
diff_drivers
);
repo
->
diff_drivers
=
NULL
;
...
...
@@ -245,7 +245,7 @@ static git_repository *repository_alloc(void)
on_error:
if
(
repo
)
git_cache_
fre
e
(
&
repo
->
objects
);
git_cache_
dispos
e
(
&
repo
->
objects
);
git__free
(
repo
);
return
NULL
;
...
...
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