diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-03-02 22:06:43 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-03-02 22:06:43 +0100 |
| commit | a1fdbc79ccbdc08241d20cf96d9df89118a840ab (patch) | |
| tree | 852ed6165c2cd145cfec4f5c7eb02d42da297eca | |
| parent | 5392bbb3ded81d91c4f66f9c3bfdd4e588242e62 (diff) | |
fix UB
| -rw-r--r-- | src/source.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/source.cc b/src/source.cc index efa15e8..d4d87fa 100644 --- a/src/source.cc +++ b/src/source.cc @@ -65,7 +65,7 @@ void buffer_deinit(Buffer* buffer) { slice_deallocate(buffer->allocator, &buffer->content); memset(buffer, 0, sizeof(*buffer)); - deallocate(buffer->allocator, (u8*)buffer); + deallocate(allocator, (u8*)buffer); } struct Buffer_Stack { |
