libgit2/pygit2 — pull request #461 by garious (2014-12-20 00:04:22+00:00)
Title: Fix use-after-free when patch outlives diff

And added test that would trigger the bug in Valgrind.