Release a PYC resource after reading it. No need to keep it incore.

This commit is contained in:
Jack Jansen 2001-02-21 15:48:19 +00:00
parent 316a01093d
commit add8b246f6
1 changed files with 2 additions and 0 deletions

View File

@ -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, "<pyc resource>");