From 0e4a27284f64a390911316cc48f2c4b344099a49 Mon Sep 17 00:00:00 2001 From: earl Date: Fri, 21 Feb 2014 10:21:32 +0100 Subject: [PATCH] diff: Fix for memory leak in git_patch --- src/diff.c | 1 + 1 file changed, 1 insertion(+) 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; }