diff options
-rw-r--r-- | src/filter.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/filter.c b/src/filter.c index ecdc809a4..e9517a259 100644 --- a/src/filter.c +++ b/src/filter.c @@ -171,7 +171,10 @@ static int unfiltered_blob_contents(git_buf *out, git_repository *repo, const gi git_blob *blob; if (!(retcode = git_blob_lookup(&blob, repo, blob_id))) + { retcode = git_blob__getbuf(out, blob); + git_blob_free(blob); + } return retcode; } |