]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
bindings: do not leak Repo in __next__() 208/head
authorIgor Gnatenko <ignatenko@redhat.com>
Sun, 21 May 2017 17:05:34 +0000 (19:05 +0200)
committerIgor Gnatenko <ignatenko@redhat.com>
Sun, 21 May 2017 17:06:35 +0000 (19:06 +0200)
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 <ignatenko@redhat.com>
bindings/solv.i

index 96e5d231e5ac1030e1a3034b88e3afe63c498919..5736f2065c4759131d5388faeffd84881c702345 100644 (file)
@@ -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)