summaryrefslogtreecommitdiff
path: root/src/odb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/odb.c')
-rw-r--r--src/odb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/odb.c b/src/odb.c
index afadc73a3..982cc52d0 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -840,6 +840,8 @@ static void packlist_dec(git_odb *db, git_packlist *pl)
{
int need_free;
+ assert(db && pl);
+
gitlck_lock(&db->lock);
need_free = !--pl->refcnt;
gitlck_unlock(&db->lock);