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
Memory leak with implicit result
#21703
Labels
Comments
The memleak doesn't occur in vm, to make that clear. |
Here is a more minimized example func example*(s: seq[int]): seq[int] =
when nimvm:
s
else:
@(s.toOpenArray(0, s.high))
discard @[1, 2, 3].example |
ringabout
added a commit
that referenced
this issue
Apr 24, 2023
Araq
pushed a commit
that referenced
this issue
Apr 24, 2023
capocasa
pushed a commit
to capocasa/Nim
that referenced
this issue
May 15, 2023
capocasa
pushed a commit
to capocasa/Nim
that referenced
this issue
May 16, 2023
bung87
pushed a commit
to bung87/Nim
that referenced
this issue
Jul 29, 2023
narimiran
pushed a commit
that referenced
this issue
Sep 11, 2023
narimiran
pushed a commit
that referenced
this issue
Sep 11, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
status-im/nim-stew#183
The implicit result causes a memory leak.
The explicit result does not.
Nim Version
1.9.3
c136ebf
Current Output
Expected Output
Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: