mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
parent
fc9ab5f0e8
commit
de227ace14
@ -433,7 +433,7 @@ pub fn GeneralPurposeAllocator(comptime config: Config) type {
|
||||
}
|
||||
} else struct {};
|
||||
|
||||
/// Returns true if there were leaks; false otherwise.
|
||||
/// Returns `Check.leak` if there were leaks; `Check.ok` otherwise.
|
||||
pub fn deinit(self: *Self) Check {
|
||||
const leaks = if (config.safety) self.detectLeaks() else false;
|
||||
if (config.retain_metadata) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user