Author: victor.stinner Date: Fri Jul 30 22:33:58 2010 New Revision: 83302 Log: parse_source_module() free the arena on error 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:33:58 2010 @@ -1173,8 +1173,10 @@ return NULL; pathbytes = PyUnicode_EncodeFSDefault(pathobj); - if (pathbytes == NULL) + if (pathbytes == NULL) { + PyArena_Free(arena); return NULL; + } pathname = PyBytes_AS_STRING(pathbytes); flags.cf_flags = 0;
participants (1)
-
victor.stinner