mirror of https://github.com/python/cpython.git
Release a PYC resource after reading it. No need to keep it incore.
This commit is contained in:
parent
316a01093d
commit
add8b246f6
|
@ -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>");
|
||||
|
|
Loading…
Reference in New Issue