From: Igor Gnatenko Date: Sun, 21 May 2017 17:05:34 +0000 (+0200) Subject: bindings: do not leak Repo in __next__() X-Git-Tag: 0.6.28~11^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F208%2Fhead;p=thirdparty%2Flibsolv.git bindings: do not leak Repo in __next__() We don't create new object in __getitem__, why should we do it in __next__? Closes: https://github.com/openSUSE/libsolv/issues/207 Signed-off-by: Igor Gnatenko --- diff --git a/bindings/solv.i b/bindings/solv.i index 96e5d231..5736f206 100644 --- a/bindings/solv.i +++ b/bindings/solv.i @@ -2609,7 +2609,6 @@ rb_eval_string( #ifdef SWIGPERL perliter(solv::Pool_repo_iterator) #endif - %newobject __next__; Repo *__next__() { Pool *pool = $self->pool; if ($self->id >= pool->nrepos)