From add8b246f63dce24006a45ecf24b21491e85ac54 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Wed, 21 Feb 2001 15:48:19 +0000 Subject: Release a PYC resource after reading it. No need to keep it incore. --- Mac/Python/macimport.c | 2 ++ 1 file changed, 2 insertions(+) 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, ""); -- cgit v0.12