Skip to content

fix(model): close jar and classloader via try-with-resources in Exten… - #264

Merged
funa-tk merged 1 commit into
DeNA:masterfrom
toku-sa-n:fix/extensions-resource-leak
Sep 1, 2026
Merged

fix(model): close jar and classloader via try-with-resources in Exten…#264
funa-tk merged 1 commit into
DeNA:masterfrom
toku-sa-n:fix/extensions-resource-leak

Conversation

@toku-sa-n

Copy link
Copy Markdown
Contributor

拡張機能を読み込む際に例外が発生すると、urlClassLoaderjarが閉じられず、リソースリークが発生するため、これを修正しました。

…sions.loadExtension

Previously JarFile and URLClassLoader were closed only at the end of the
method, so any exception thrown beforehand leaked both resources. Wrapping
them in try-with-resources guarantees they are always closed.

Co-authored-by: Cursor <cursoragent@cursor.com>
@toku-sa-n
toku-sa-n force-pushed the fix/extensions-resource-leak branch from 1432278 to 2f269f8 Compare July 10, 2026 11:36

@funa-tk funa-tk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます!
LGTMです。

@funa-tk
funa-tk merged commit c84cba8 into DeNA:master Sep 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants