mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 10:58:56 +00:00
Zero out sensitive memory before freeing (#17750)
This commit is contained in:
@@ -2122,7 +2122,9 @@ pub const PostgresSQLConnection = struct {
|
||||
this.write_buffer.deinit(bun.default_allocator);
|
||||
this.read_buffer.deinit(bun.default_allocator);
|
||||
this.backend_parameters.deinit();
|
||||
bun.default_allocator.free(this.options_buf);
|
||||
|
||||
bun.freeSensitive(bun.default_allocator, this.options_buf);
|
||||
|
||||
this.tls_config.deinit();
|
||||
bun.default_allocator.destroy(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user