| ... | @@ -423,6 +423,7 @@ pub fn GeneralPurposeAllocator(comptime config: Config) type { | ... | @@ -423,6 +423,7 @@ pub fn GeneralPurposeAllocator(comptime config: Config) type { |
| 423 | } | 423 | } |
| 424 | } else struct {}; | 424 | } else struct {}; |
| 425 | | 425 | |
| | 426 | /// Returns true if there were leaks; false otherwise. |
| 426 | pub fn deinit(self: *Self) bool { | 427 | pub fn deinit(self: *Self) bool { |
| 427 | const leaks = if (config.safety) self.detectLeaks() else false; | 428 | const leaks = if (config.safety) self.detectLeaks() else false; |
| 428 | if (config.retain_metadata) { | 429 | if (config.retain_metadata) { |