summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-02-21 15:48:19 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-02-21 15:48:19 (GMT)
commitadd8b246f63dce24006a45ecf24b21491e85ac54 (patch)
treee66f4fb76085258d72b892271d22bacdd30335b2 /Mac
parent316a01093dfae6ffa891be356543074a4c55b0e8 (diff)
downloadcpython-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')
-rw-r--r--Mac/Python/macimport.c2
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>");