mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +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);
|
||||
if ( filerh != -1 )
|
||||
CloseResFile(filerh);
|
||||
else
|
||||
ReleaseResource(h);
|
||||
UseResFile(oldrh);
|
||||
if ( co ) {
|
||||
m = PyImport_ExecCodeModuleEx(module, co, "<pyc resource>");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue