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 b96ff4705..f1d1010b4 100644 --- a/src/diff.c +++ b/src/diff.c @@ -463,6 +463,8 @@ static void diff_list_free(git_diff_list *diff) git_pathspec_free(&diff->pathspec); git_pool_clear(&diff->pool); + + memset(diff, 0, sizeof(*diff)); git__free(diff); } |