From: Jack Jansen Date: Wed, 21 Feb 2001 15:48:19 +0000 (+0000) Subject: Release a PYC resource after reading it. No need to keep it incore. X-Git-Tag: v2.1b1~241 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=add8b246f63dce24006a45ecf24b21491e85ac54;p=thirdparty%2FPython%2Fcpython.git 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 08065361a53c..b1d6591b8718 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, "");