diff options
Diffstat (limited to 'src/diff.c')
-rw-r--r-- | src/diff.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/diff.c b/src/diff.c index 97ccb3cbd..bd2b88167 100644 --- a/src/diff.c +++ b/src/diff.c @@ -465,6 +465,8 @@ static void diff_list_free(git_diff_list *diff) git_pathspec_free(&diff->pathspec); git_pool_clear(&diff->pool); + + git__memset(diff, 0, sizeof(*diff)); git__free(diff); } |