diff --git a/src/diff.c b/src/diff.c index 8e59eba..b3a32dd 100644 --- a/src/diff.c +++ b/src/diff.c @@ -127,6 +127,7 @@ wrap_patch(git_patch *patch) } } } + git_patch_free(patch); return (PyObject*) py_patch; }