diff options
Diffstat (limited to 'src/index.c')
-rw-r--r-- | src/index.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/index.c b/src/index.c index 45ce2f3d6..abc9495bd 100644 --- a/src/index.c +++ b/src/index.c @@ -348,6 +348,8 @@ static void index_free(git_index *index) git_vector_free(&index->reuc); git__free(index->index_file_path); + + memset(index, 0, sizeof(*index)); git__free(index); } |