Mercurial > cpython-lru_cache-weakref
view Modules/ccpython.cc @ 22194:fc6dc2ea25cf legacy-trunk
Fix leak of NotImplemented in previous checkin to PyNumber_Add().
If result == Py_NotImplemented, always DECREF it before assigning a
new value to result.
| author | Jeremy Hylton <jeremy@alum.mit.edu> |
|---|---|
| date | Fri, 08 Mar 2002 21:28:54 +0000 |
| parents | 57aa277d7a00 |
| children |
line wrap: on
line source
/* Minimal main program -- everything is loaded from the library */ #include "Python.h" extern "C" DL_EXPORT(int) Py_Main( int argc, char *argv[] ); int main( int argc, char *argv[] ) { return Py_Main(argc, argv); }
