Mercurial > cpython-lru_cache-weakref
diff Mac/Python/macimport.c @ 16727:800b004acc71 legacy-trunk
Release a PYC resource after reading it. No need to keep it incore.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Wed, 21 Feb 2001 15:48:19 +0000 |
| parents | db963a615bc9 |
| children | 5d50d1fae078 |
line wrap: on
line diff
--- a/Mac/Python/macimport.c Wed Feb 21 15:45:55 2001 +0000 +++ b/Mac/Python/macimport.c Wed Feb 21 15:48:19 2001 +0000 @@ -380,6 +380,8 @@ HUnlock(h); if ( filerh != -1 ) CloseResFile(filerh); + else + ReleaseResource(h); UseResFile(oldrh); if ( co ) { m = PyImport_ExecCodeModuleEx(module, co, "<pyc resource>");
