mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
Release a PYC resource after reading it. No need to keep it incore.
This commit is contained in:
parent
316a01093d
commit
add8b246f6
1 changed files with 2 additions and 0 deletions
|
@ -380,6 +380,8 @@ packageerror:
|
||||||
HUnlock(h);
|
HUnlock(h);
|
||||||
if ( filerh != -1 )
|
if ( filerh != -1 )
|
||||||
CloseResFile(filerh);
|
CloseResFile(filerh);
|
||||||
|
else
|
||||||
|
ReleaseResource(h);
|
||||||
UseResFile(oldrh);
|
UseResFile(oldrh);
|
||||||
if ( co ) {
|
if ( co ) {
|
||||||
m = PyImport_ExecCodeModuleEx(module, co, "<pyc resource>");
|
m = PyImport_ExecCodeModuleEx(module, co, "<pyc resource>");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue