diff options
Diffstat (limited to 'src/pack.c')
-rw-r--r-- | src/pack.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pack.c b/src/pack.c index df2563101..47ce854c4 100644 --- a/src/pack.c +++ b/src/pack.c @@ -158,6 +158,7 @@ static int cache_add(git_pack_cache *cache, git_rawobj *base, git_off_t offset) if (entry) { if (git_mutex_lock(&cache->lock) < 0) { giterr_set(GITERR_OS, "failed to lock cache"); + git__free(entry); return -1; } /* Add it to the cache if nobody else has */ |