commit | add8b246f63dce24006a45ecf24b21491e85ac54 | [log] [tgz] |
---|---|---|
author | Jack Jansen <jack.jansen@cwi.nl> | Wed Feb 21 15:48:19 2001 +0000 |
committer | Jack Jansen <jack.jansen@cwi.nl> | Wed Feb 21 15:48:19 2001 +0000 |
tree | e66f4fb76085258d72b892271d22bacdd30335b2 | |
parent | 316a01093dfae6ffa891be356543074a4c55b0e8 [diff] |
Release a PYC resource after reading it. No need to keep it incore.
diff --git a/Mac/Python/macimport.c b/Mac/Python/macimport.c index 0806536..b1d6591 100644 --- a/Mac/Python/macimport.c +++ b/Mac/Python/macimport.c
@@ -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>");