summaryrefslogtreecommitdiff
path: root/src/cache.c
diff options
context:
space:
mode:
authorPhilip Kelley <phkelley@hotmail.com>2012-11-09 15:57:32 -0500
committerPhilip Kelley <phkelley@hotmail.com>2012-11-09 15:57:32 -0500
commitfcd03bebbfda5cfc76604645edd85fe030349a1b (patch)
tree553f208d859abe43bd2f21ba29172921c8275c46 /src/cache.c
parent2f683f00971239007e1d602ec1a71a1eb10f4f5e (diff)
downloadlibgit2-fcd03bebbfda5cfc76604645edd85fe030349a1b.tar.gz
Fix a mutex/critical section leak
Diffstat (limited to 'src/cache.c')
-rw-r--r--src/cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cache.c b/src/cache.c
index 1f5b8872c..edd3a47dd 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -41,6 +41,7 @@ void git_cache_free(git_cache *cache)
git_cached_obj_decref(cache->nodes[i], cache->free_obj);
}
+ git_mutex_free(&cache->lock);
git__free(cache->nodes);
}