aboutsummaryrefslogtreecommitdiff
path: root/include/stringop.h
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2025-05-31 00:02:56 +0200
committerSimon Ser <contact@emersion.fr>2025-06-26 22:05:05 +0200
commit3d6b9a28480a398e3af869d4051181f98a042022 (patch)
tree1e2e008557dff79457d2480d4701338cf885f9ae /include/stringop.h
parente28e6484e8eafcac776ac0ec2bee8feddb19361a (diff)
tree/container: Remove child from all lists
When a container is detached, we need to remove it from any lists it may be part of. We use container_get_siblings to obtain the relevant list, find our entry and remove it. If the container is in a later list than the one returned by container_get_siblings, or is in multiple lists for some reason, container_detach will fail to remove the container, leaving a dangling pointer when the container is freed. Instead of calling container_get_siblings, check and remove the container from all lists.
Diffstat (limited to 'include/stringop.h')
0 files changed, 0 insertions, 0 deletions