diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-02-21 15:48:19 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-02-21 15:48:19 (GMT) |
commit | add8b246f63dce24006a45ecf24b21491e85ac54 (patch) | |
tree | e66f4fb76085258d72b892271d22bacdd30335b2 /Mac/Python | |
parent | 316a01093dfae6ffa891be356543074a4c55b0e8 (diff) | |
download | cpython-add8b246f63dce24006a45ecf24b21491e85ac54.zip cpython-add8b246f63dce24006a45ecf24b21491e85ac54.tar.gz cpython-add8b246f63dce24006a45ecf24b21491e85ac54.tar.bz2 |
Release a PYC resource after reading it. No need to keep it incore.
Diffstat (limited to 'Mac/Python')
-rw-r--r-- | Mac/Python/macimport.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ packageerror: HUnlock(h); if ( filerh != -1 ) CloseResFile(filerh); + else + ReleaseResource(h); UseResFile(oldrh); if ( co ) { m = PyImport_ExecCodeModuleEx(module, co, "<pyc resource>"); |