Commit 273c8bc044fa6c7560ef9f1fa3d8d3bb786e8f15

Vicent Martí 2011-05-01T14:59:11

Merge pull request #147 from nordsturm/fix_pack_backend_leak. 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 940750e..57ad5e3 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);
 }