mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 13:57:38 +00:00
The `removeSlice` function was leaving behind references to the removed element, preventing it from being garbage-collected. This commit ensures that removed entries are fully cleared, eliminating the memory leak. Co-authored-by: ravisastryk <ravisastryk@gmail.com> Signed-off-by: Sujal Shah <sujalshah28092004@gmail.com>