Commit ed6c462c2043330ab7cda09097ffb95943919caa

Sergey Nikishin 2011-04-27T17:30:45

Fix memory leak in pack_backend__free

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/odb_pack.c b/src/odb_pack.c
index 40ef48f..6537bbe 100644
--- a/src/odb_pack.c
+++ b/src/odb_pack.c
@@ -1385,6 +1385,7 @@ void pack_backend__free(git_odb_backend *_backend)
 	}
 
 	git_vector_free(&backend->packs);
+	free(backend->pack_folder);
 	free(backend);
 }