-
Notifications
You must be signed in to change notification settings - Fork 145
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
Limit memory
usage scope
#3084
Comments
@yegor256 check this out:
What do you think if this abstract object (I called it |
@maxonfjvipon sounds good |
maxonfjvipon
added a commit
to maxonfjvipon/eo
that referenced
this issue
Apr 23, 2024
maxonfjvipon
added a commit
to maxonfjvipon/eo
that referenced
this issue
Apr 23, 2024
maxonfjvipon
added a commit
to maxonfjvipon/eo
that referenced
this issue
Apr 23, 2024
@maxonfjvipon I believe, this change deserves a blog post (and a new minor release) |
@yegor256 let's make a new release with tag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current implementation of
memory
object leads to potential memory leaks because we except end-user tofree
allocated memory block. Of course user may just forget to do it. It's called "Hello, C++".We should limit the scope of
memory
usage and free allocated memory automatically when scope is ended.We can do using abstract objects:
When abstract object finishes its execution, memory is freed automatically
The text was updated successfully, but these errors were encountered: