summaryrefslogtreecommitdiff
path: root/src/odb_loose.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2018-02-09 17:31:50 +0000
committerPatrick Steinhardt <ps@pks.im>2018-02-09 17:31:50 +0000
commita43bcd2c5392586f987d0c3c6247e75699ba135d (patch)
tree1acc28178fc65affda99e02d86b4d574c87afab3 /src/odb_loose.c
parent028a28066ff3aaf79767e9a5c5cc5ff6762cc4bc (diff)
downloadlibgit2-a43bcd2c5392586f987d0c3c6247e75699ba135d.tar.gz
odb: fix memory leaks due to not freeing hash context
Diffstat (limited to 'src/odb_loose.c')
-rw-r--r--src/odb_loose.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/odb_loose.c b/src/odb_loose.c
index 713288da2..7032b8a71 100644
--- a/src/odb_loose.c
+++ b/src/odb_loose.c
@@ -1030,6 +1030,7 @@ done:
git_futils_mmap_free(&stream->map);
git_zstream_free(&stream->zstream);
git_hash_ctx_cleanup(hash_ctx);
+ git__free(hash_ctx);
git__free(stream);
}