fixing memory leak
Some checks failed
Build / build (push) Successful in 2m13s
Test / build_and_test (push) Failing after 25m3s

This commit is contained in:
2026-01-08 14:17:49 +01:00
parent 4f7b319a43
commit 87c6a66a2f
3 changed files with 4 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ jobs:
run: ls cts | grep "results.csv" run: ls cts | grep "results.csv"
- name: Cloning CTS viewer - name: Cloning CTS viewer
run: git clone https://github.com/Kbz-8/VulkanCTSViewer.git run: git clone https://git.kbz8.me/kbz_8/VulkanCTSViewer.git
- name: Build CTS viewer - name: Build CTS viewer
env: env:

View File

@@ -68,7 +68,7 @@ jobs:
run: ls cts | grep "results.csv" run: ls cts | grep "results.csv"
- name: Cloning CTS viewer - name: Cloning CTS viewer
run: git clone https://github.com/Kbz-8/VulkanCTSViewer.git run: git clone https://git.kbz8.me/kbz_8/VulkanCTSViewer.git
- name: Build CTS viewer - name: Build CTS viewer
env: env:

View File

@@ -68,8 +68,9 @@ pub const LogVerboseLevel = enum {
}; };
pub inline fn getLogVerboseLevel() LogVerboseLevel { pub inline fn getLogVerboseLevel() LogVerboseLevel {
const allocator = std.heap.page_allocator; const allocator = std.heap.c_allocator;
const level = std.process.getEnvVarOwned(allocator, DRIVER_LOGS_ENV_NAME) catch return .None; const level = std.process.getEnvVarOwned(allocator, DRIVER_LOGS_ENV_NAME) catch return .None;
defer allocator.free(level);
return if (std.mem.eql(u8, level, "none")) return if (std.mem.eql(u8, level, "none"))
.None .None
else if (std.mem.eql(u8, level, "all")) else if (std.mem.eql(u8, level, "all"))