Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Delete allocated memory before throwing an exception#3192

Open
SafeCoding233 wants to merge 1 commit intosass:masterfrom
SafeCoding233:fix-mem-leak
Open

Delete allocated memory before throwing an exception#3192
SafeCoding233 wants to merge 1 commit intosass:masterfrom
SafeCoding233:fix-mem-leak

Conversation

@SafeCoding233
Copy link

I added two deletes for the import entry and the source file entry before an exception is thrown.

If the client code captures and tries to recover from the exception, the previous version without delete may cause memory leak.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants