diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-11-26 04:59:21 +0100 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-11-26 08:48:00 +0100 |
commit | 45e79e37012ffec58c754000c23077ecac2da753 (patch) | |
tree | 809092609a4ca641ada8990c9008c7fb96c9cc07 /src/object.c | |
parent | 9462c471435b4de74848408bebe41d770dc49a50 (diff) | |
download | libgit2-45e79e37012ffec58c754000c23077ecac2da753.tar.gz |
Rename all `_close` methods
There's no difference between `_free` and `_close` semantics: keep
everything with the same name to avoid confusions.
Diffstat (limited to 'src/object.c')
-rw-r--r-- | src/object.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/object.c b/src/object.c index 12947f035..95c7cf9d2 100644 --- a/src/object.c +++ b/src/object.c @@ -109,7 +109,7 @@ int git_object_lookup_prefix( object = git_cache_get(&repo->objects, id); if (object != NULL) { if (type != GIT_OBJ_ANY && type != object->type) { - git_object_close(object); + git_object_free(object); return git__throw(GIT_EINVALIDTYPE, "Failed to lookup object. " "The given type does not match the type on the ODB"); @@ -151,7 +151,7 @@ int git_object_lookup_prefix( return git__rethrow(error, "Failed to lookup object"); if (type != GIT_OBJ_ANY && type != odb_obj->raw.type) { - git_odb_object_close(odb_obj); + git_odb_object_free(odb_obj); return git__throw(GIT_EINVALIDTYPE, "Failed to lookup object. The given type does not match the type on the ODB"); } @@ -185,7 +185,7 @@ int git_object_lookup_prefix( break; } - git_odb_object_close(odb_obj); + git_odb_object_free(odb_obj); if (error < GIT_SUCCESS) { git_object__free(object); @@ -229,7 +229,7 @@ void git_object__free(void *_obj) } } -void git_object_close(git_object *object) +void git_object_free(git_object *object) { if (object == NULL) return; |