]> granicus.if.org Git - python/commitdiff
Release a PYC resource after reading it. No need to keep it incore.
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 21 Feb 2001 15:48:19 +0000 (15:48 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 21 Feb 2001 15:48:19 +0000 (15:48 +0000)
Mac/Python/macimport.c

index 08065361a53c895fdbae8400b00571805da8e279..b1d6591b87181819ff72c06c967a6600c133ae42 100644 (file)
@@ -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>");