projects
/
onyx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b75226b
)
fixed: critical bug in `list.free`
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Mon, 4 Dec 2023 20:10:29 +0000
(14:10 -0600)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Mon, 4 Dec 2023 20:10:29 +0000
(14:10 -0600)
core/container/list.onyx
patch
|
blob
|
history
diff --git
a/core/container/list.onyx
b/core/container/list.onyx
index 639725cbe4d4158a7b8ad044ad4b391dd57eb0ba..d4aa3bd0311136844002c3aac460c79326e1f9f9 100644
(file)
--- a/
core/container/list.onyx
+++ b/
core/container/list.onyx
@@
-39,7
+39,7
@@
free :: (list: &List) {
while elem != null {
to_delete := elem;
elem = elem.next;
- raw_free(list.allocator,
elem
);
+ raw_free(list.allocator,
to_delete
);
}
}