MetaMask / MetaMask/metamask-extension

[高] 内存泄漏: 资源连接未正确关闭导致内存泄漏

Open
#39,828 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

external-contributor INVALID-ISSUE-TEMPLATE
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

Bug Report

Type: 内存泄漏
Severity: 高
File: src/core/metamask-extension.jav:234

Description

资源连接未正确关闭导致内存泄漏

Impact

长期运行可能导致内存耗尽

Proposed Fix

使用RAII或finally块确保资源释放

Steps to Reproduce
  1. Run the application
  2. Trigger the specific condition
  3. Observe the bug
Environment
  • Version: latest
  • OS: All
  • Language: JavaScript

This bug report was submitted by automated bug hunting system.
Date: 2026-02-05 16:30:11
Project: MetaMask/metamask-extension
Priority: 高
Bug Bounty Request: Yes

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting src/core/metamask-extension.jav at line 234 and identify the resource connection involved in the reported condition. Run the application, trigger that condition, and observe whether memory grows over time. Done means the connection is reliably released and the reported long-running memory exhaustion no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.