Skip to content

Memory leak fixes#64

Merged
tmbrbr merged 7 commits into
SAP:mainfrom
tmbrbr:memory-leak-fix
Aug 4, 2022
Merged

Memory leak fixes#64
tmbrbr merged 7 commits into
SAP:mainfrom
tmbrbr:memory-leak-fix

Conversation

@tmbrbr

@tmbrbr tmbrbr commented Jul 27, 2022

Copy link
Copy Markdown
Contributor

This PR aims to fix #61 in two steps:

  1. Additional sweep of String objects in the nursery to safely delete any taint instances.
  2. Introduction of SafeStringTaint class which deletes its own ranges_ pointer on destruction (StringTaint does not do this!)

There are also some other small refactorings of the StringTaint class (removing static functions which were leaking memory when returning StringTaint objects).

tmbrbr added 7 commits July 25, 2022 14:27
The StringTaint class does not delete the ranges_ pointer on its own.
The user needs to call clear() before the object goes out of scope.

This commit introduces SafeStringTaint which does the necessary deletion
and can be safely used for taint manipulation.
@tmbrbr tmbrbr self-assigned this Aug 1, 2022
@tmbrbr tmbrbr merged commit d09308b into SAP:main Aug 4, 2022
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.

Memory Leak of StringTaints

1 participant