commit 414611d9fe15909ca7502d7c65f0a9090923913a from: Stefan Sperling date: Wed Sep 19 20:03:24 2018 UTC fix off-by-one in commit ref counter printed by check_refcount() commit - 2673a8da9c48b8c7735113dd12d164b4bf395c6a commit + 414611d9fe15909ca7502d7c65f0a9090923913a blob - 8bba15746bb22ef36cd9b927614892297df7ada3 blob + 24b34b5a240fdcde737f55f54a4f6755371faffc --- lib/object_cache.c +++ lib/object_cache.c @@ -182,7 +182,7 @@ void check_refcount(struct got_object_id *id, void *da if (commit->refcnt == 1) break; fprintf(stderr, "commit %s has %d unclaimed references\n", - id_str, commit->refcnt); + id_str, commit->refcnt - 1); break; } free(id_str);