This is an opaque structure which is allocated by git_diff_get_stats. You are responsible for releasing the object memory when done, using the git_diff_stats_free() function.
git_diff_get_stats
git_diff_stats_free()