summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabrice <fabrice@schaub-dev.xyz>2026-03-02 22:06:43 +0100
committerFabrice <fabrice@schaub-dev.xyz>2026-03-02 22:06:43 +0100
commita1fdbc79ccbdc08241d20cf96d9df89118a840ab (patch)
tree852ed6165c2cd145cfec4f5c7eb02d42da297eca
parent5392bbb3ded81d91c4f66f9c3bfdd4e588242e62 (diff)
fix UB
-rw-r--r--src/source.cc2
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 {