On Fri, 3 Sep 2010 12:00:51 +0200 (CEST) raymond.hettinger <python-check...@python.org> wrote: > rv = set_discard_entry(so, &an_entry); > - if (rv == -1) > + if (rv == -1) { > + Py_DECREF(key); > return NULL; > + } > if (rv == DISCARD_NOTFOUND) { > - if (set_add_entry(so, &an_entry) == -1) > + if (set_add_entry(so, &an_entry) == -1) { > + Py_DECREF(key); > return NULL; > + } > } > + Py_DECREF(key); > }
You have some misindented code here. Regards Antoine. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com