![](https://secure.gravatar.com/avatar/8ac615df352a970211b0e3d94a307c6d.jpg?s=120&d=mm&r=g)
30 Jul
2010
30 Jul
'10
9:30 p.m.
Author: victor.stinner Date: Fri Jul 30 22:30:05 2010 New Revision: 83301 Log: make_source_pathname() raises a MemoryError on strdup() failure Modified: python/branches/import_unicode/Python/import.c Modified: python/branches/import_unicode/Python/import.c ============================================================================== --- python/branches/import_unicode/Python/import.c (original) +++ python/branches/import_unicode/Python/import.c Fri Jul 30 22:30:05 2010 @@ -1060,7 +1060,7 @@ pathname = strdup(PyBytes_AsString(pathbytes)); Py_DECREF(pathbytes); if (pathname == NULL) - return NULL; + return PyErr_NoMemory(); cpathname = _make_source_pathname(pathname, buf); free(pathname);
5088
Age (days ago)
5088
Last active (days ago)
0 comments
1 participants
participants (1)
-
victor.stinner