summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index 2b239a0bf..094155e59 100644
--- a/src/util.h
+++ b/src/util.h
@@ -143,7 +143,7 @@ typedef void (*git_refcount_freeptr)(void *r);
#define GIT_REFCOUNT_DEC(_r, do_free) { \
git_refcount *r = (git_refcount *)(_r); \
r->refcount--; \
- if (r->refcount == 0 && r->owner == NULL) { do_free(_r); } \
+ if (r->refcount <= 0 && r->owner == NULL) { do_free(_r); } \
}
#define GIT_REFCOUNT_OWN(r, o) { \