Mercurial > cpython-lru_cache-weakref
view Python/getplatform.c @ 15438:433458651eb4 legacy-trunk
Plug a memory leak in com_import_stmt(): the tuple created to hold the
"..." in "from M import ..." was never DECREFed. Leak reported by
James Slaughter and nailed by Barry, who also provided an earlier
version of this patch.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 27 Nov 2000 22:22:36 +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; }
