We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7f3d22 commit 0bbb7e7Copy full SHA for 0bbb7e7
src/utils.zig
@@ -62,6 +62,7 @@ pub const FileFinder = struct {
62
} else {
63
// Not Found, try the parent dir
64
if (std.fs.path.dirname(dirname)) |parent| {
65
+ allocator.free(path); // situation not captured by errdefer
66
return Self.recursiveFind(allocator, parent, filename);
67
68
return std.fs.File.OpenError.FileNotFound;
0 commit comments