[Python-Dev] r84447 - in python/branches/py3k: Lib/test/test_set.py Objects/setobject.c
Antoine Pitrou
solipsis at pitrou.net
Fri Sep 3 12:28:47 CEST 2010
On Fri, 3 Sep 2010 12:00:51 +0200 (CEST)
raymond.hettinger <python-checkins at 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.
More information about the Python-Dev
mailing list