← Back to team overview

subvertpy-users team mailing list archive

[PATCH 3 of 3] Fix a memory leak

 

# HG changeset patch
# User Dan Villiom Podlaski Christiansen <danchr@xxxxxxxxx>
# Date 1284483800 -7200
# Node ID 63f87ad6cb314faddf37ebf3e1fce4840ee0fa94
# Parent  f11c9e3595a00e2e32bc713cd92f46275b1fe6f9
Fix a memory leak.

diff --git a/subvertpy/util.c b/subvertpy/util.c
--- a/subvertpy/util.c
+++ b/subvertpy/util.c
@@ -517,7 +517,6 @@ svn_stream_t *new_py_stream(apr_pool_t *
 						"Unable to create a Subversion stream");
 		return NULL;
 	}
-	Py_INCREF(py);
 	svn_stream_set_read(stream, py_stream_read);
 	svn_stream_set_write(stream, py_stream_write);
 	svn_stream_set_close(stream, py_stream_close);



Follow ups

References