summaryrefslogtreecommitdiff
path: root/src/diff.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2013-06-12 21:05:48 +0200
committerVicent Marti <tanoku@gmail.com>2013-06-12 21:05:48 +0200
commiteb58e2d0be4e07c2ef873a5f0562eaa90826c2de (patch)
tree41959050b1e3adb428e140102a0c321949be516b /src/diff.c
parent3b5001b4c911db9c47d62399c1adc03bd8a3ca72 (diff)
parent3e9e6cdaff8acb11399736abbf793bf2d000d037 (diff)
downloadlibgit2-eb58e2d0be4e07c2ef873a5f0562eaa90826c2de.tar.gz
Merge remote-tracking branch 'arrbee/minor-paranoia' into development
Diffstat (limited to 'src/diff.c')
-rw-r--r--src/diff.c2
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);
}