autofree: os.execute string allocation not freed #23491
Labels
Autofree
Bugs/feature requests, that are related to -autofree.
Bug
This tag is applied to issues which reports bugs.
Unit: cgen
Bugs/feature requests, that are related to the default C generating backend.
Describe the bug
When using os.execute, it allocates a string and that string is not freed by autofree.
Diagnostic by Felipe Pena on discord: https://discord.com/channels/592103645835821068/592294828432424960/1329524135520501852
Reproduction Steps
run with
v -autofree -prod -cc gcc -cg -keepc -gc none bug.v
and usedvalgrind --leak-check=full -v ./bug
to check for leaksExpected Behavior
It to be freed (maybe via
is_return_used
, see the conversation on discord).Current Behavior
Valgrind:
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.9 6ac1d08.f9106a8
Environment details (OS name and version, etc.)
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: