Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the clone method after fetching in the request method in TonApiClient causes a memory leak #212

Open
FeiFanLiang opened this issue Nov 27, 2024 · 3 comments
Labels

Comments

@FeiFanLiang
Copy link

acacode/swagger-typescript-api#779

image

The clone method here will cause the arrayBuffer occupied by each request not to be released, causing a memory leak. Please fix it as soon as possible.

@FeiFanLiang
Copy link
Author

The same problem exists in tonapi-sdk-js

@FeiFanLiang
Copy link
Author

getBlockchainBlockTransactions抛出错误Error: Invalid magic

@mois-ilya
Copy link
Collaborator

mois-ilya commented Nov 28, 2024

The memory leak issue caused by clone is there. As in the original issue, I need to ensure that removing cloning won’t cause side effects.

I’m planning to address this in version 0.4.0.

If you’re confident that removing clone is safe for your use case, you can temporarily remove it, for example, by patching the package with patch-package or another method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants