fixing memory leak
This commit is contained in:
@@ -62,7 +62,7 @@ jobs:
|
||||
run: ls cts | grep "results.csv"
|
||||
|
||||
- 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
|
||||
env:
|
||||
|
||||
@@ -68,7 +68,7 @@ jobs:
|
||||
run: ls cts | grep "results.csv"
|
||||
|
||||
- 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
|
||||
env:
|
||||
|
||||
@@ -68,8 +68,9 @@ pub const LogVerboseLevel = enum {
|
||||
};
|
||||
|
||||
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;
|
||||
defer allocator.free(level);
|
||||
return if (std.mem.eql(u8, level, "none"))
|
||||
.None
|
||||
else if (std.mem.eql(u8, level, "all"))
|
||||
|
||||
Reference in New Issue
Block a user