[Python-Dev] r84447 - in python/branches/py3k: Lib/test/test_set.py Objects/setobject.c (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Fri Sep 3 12:28:47 CEST 2010
- Previous message: [Python-Dev] Internal counter to debug leaking file descriptors
- Next message: [Python-Dev] C API doc question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, 3 Sep 2010 12:00:51 +0200 (CEST) raymond.hettinger <python-checkins at python.org> wrote:
rv = setdiscardentry(so, &anentry); - if (rv == -1) + if (rv == -1) { + PyDECREF(key); return NULL; + } if (rv == DISCARDNOTFOUND) { - if (setaddentry(so, &anentry) == -1) + if (setaddentry(so, &anentry) == -1) { + PyDECREF(key); return NULL; + } } + PyDECREF(key); }
You have some misindented code here.
Regards
Antoine.
- Previous message: [Python-Dev] Internal counter to debug leaking file descriptors
- Next message: [Python-Dev] C API doc question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]