Thanks to Coverity, these were all reported by their Prevent tool.

All of these (except _lsprof.c) should be backported.  Particularly
the hotshot change which validates sys.path.  Can someone backport?
This commit is contained in:
Neal Norwitz 2006-03-07 04:48:24 +00:00
parent e22373d690
commit 60da31660c
6 changed files with 25 additions and 2 deletions

View file

@ -850,6 +850,8 @@ init_lsprof(void)
{
PyObject *module, *d;
module = Py_InitModule3("_lsprof", moduleMethods, "Fast profiler");
if (module == NULL)
return;
d = PyModule_GetDict(module);
if (PyType_Ready(&PyProfiler_Type) < 0)
return;