diff --git a/Mac/Python/macimport.c b/Mac/Python/macimport.c index 08065361a53..b1d6591b871 100644 --- a/Mac/Python/macimport.c +++ b/Mac/Python/macimport.c @@ -380,6 +380,8 @@ char *filename; HUnlock(h); if ( filerh != -1 ) CloseResFile(filerh); + else + ReleaseResource(h); UseResFile(oldrh); if ( co ) { m = PyImport_ExecCodeModuleEx(module, co, "");