mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- Test runner will also check for leaks.
- `write` of qoi would leak memory. - Issue when having an empty `Path` or just "." - `set_env` would leak memory.
This commit is contained in:
@@ -74,7 +74,7 @@ import std::io;
|
||||
fn usz! write(String filename, char[] input, QOIDesc* desc) => @pool()
|
||||
{
|
||||
// encode data
|
||||
char[] output = new_encode(input, desc)!;
|
||||
char[] output = new_encode(input, desc, allocator: allocator::temp())!;
|
||||
|
||||
// open file
|
||||
File! f = file::open(filename, "wb");
|
||||
|
||||
Reference in New Issue
Block a user