Commit aa3bf89df21c44f22fe70b4aac9109646fd06b48

Philip Kelley 2013-01-26T15:12:53

Fix a mutex leak in pack.c

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/pack.c b/src/pack.c
index 810a821..e19fc4b 100644
--- a/src/pack.c
+++ b/src/pack.c
@@ -83,6 +83,7 @@ static void cache_free(git_pack_cache *cache)
 		}
 
 		git_offmap_free(cache->entries);
+		git_mutex_free(&cache->lock);
 	}
 }