Mercurial > cpython-lru_cache-weakref
view Python/getplatform.c @ 30153:e373630bfeab 2.3
Backport checkin:
Fix refcount leak in the UnicodeError constructor:
When parsing the constructor arguments failed, a
reference to the argument tuple was leaked.
| author | Walter Dörwald <walter@livinglogic.de> |
|---|---|
| date | Thu, 14 Aug 2003 21:00:28 +0000 |
| parents | 6f6f965c5e2d |
| children |
line wrap: on
line source
#include "Python.h" #ifndef PLATFORM #define PLATFORM "unknown" #endif const char * Py_GetPlatform(void) { return PLATFORM; }
