summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-05-04 16:46:46 -0700
committerRussell Belfer <rb@github.com>2012-05-04 16:46:46 -0700
commit282283acc65bab9de231a2b3dc489eb171d5f1cf (patch)
tree402e4a5699e5d2182b542e0eb2468f564951094f /src/object.c
parent3ec1fa5e1c0ee0e151a44267fa6496ecdf604eb9 (diff)
downloadlibgit2-282283acc65bab9de231a2b3dc489eb171d5f1cf.tar.gz
Fix valgrind issues
There are three changes here: - correctly propogate error code from failed object lookups - make zlib inflate use our allocators - add OID to notfound error in ODB lookups
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object.c b/src/object.c
index 7189d60b1..e02bd69ba 100644
--- a/src/object.c
+++ b/src/object.c
@@ -146,7 +146,7 @@ int git_object_lookup_prefix(
}
if (error < 0)
- return -1;
+ return error;
if (type != GIT_OBJ_ANY && type != odb_obj->raw.type) {
git_odb_object_free(odb_obj);