mirror of
https://github.com/9001/copyparty.git
synced 2025-08-16 16:42:13 -06:00
pkgres: fix tiny leak in template loader
This commit is contained in:
parent
58cf01c2ad
commit
66b260cea9
|
@ -93,7 +93,8 @@ if not hasattr(socket, "AF_UNIX"):
|
|||
|
||||
|
||||
def load_jinja2_resource(E: EnvParams, name: str):
|
||||
return load_resource(E, "web/" + name, "r").read()
|
||||
with load_resource(E, "web/" + name, "r") as f:
|
||||
return f.read()
|
||||
|
||||
|
||||
class HttpSrv(object):
|
||||
|
|
Loading…
Reference in a new issue