summaryrefslogtreecommitdiff
path: root/src/blob.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blob.c')
-rw-r--r--src/blob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blob.c b/src/blob.c
index f271cc7f6..a9e765b40 100644
--- a/src/blob.c
+++ b/src/blob.c
@@ -132,7 +132,7 @@ int git_blob_writefile(git_oid *written_id, git_repository *repo, const char *pa
/* FIXME: maybe we don't want to free this already?
* the user may want to access it again */
- git_object_close((git_object *)blob);
+ GIT_OBJECT_DECREF(repo, blob);
return GIT_SUCCESS;
}