Memory leak when using fs.readAllAlloc
multiple times
#4656
Labels
bug
Observed behavior contradicts documented or intended behavior
standard library
This issue involves writing Zig code for the standard library.
Milestone
Not sure if this is a bug in the LeakCountAllocator, or readAllAlloc, but the following code will leak an allocation:
The following output is generated when using
zig test
:Edit: I should also mention that if the second
readAllAlloc
is removed, no memory leak is detected.The text was updated successfully, but these errors were encountered: