mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 13:22:07 +00:00
[bun.js] Fix double free in Blob
This commit is contained in:
@@ -2874,7 +2874,9 @@ pub const Blob = struct {
|
||||
/// and increment the reference count
|
||||
pub fn dupe(this: *const Blob) Blob {
|
||||
if (this.store != null) this.store.?.ref();
|
||||
return this.*;
|
||||
var duped = this.*;
|
||||
duped.allocator = null;
|
||||
return duped;
|
||||
}
|
||||
|
||||
pub fn deinit(this: *Blob) void {
|
||||
|
||||
Reference in New Issue
Block a user