• Jordan_U@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    10 months ago

    Leaks aren’t usually security critical though, and I’ve never heard of sudo triggering the OOM killer.

    Also, no general purpose language that I’m aware of can guarantee a lack of memory leaks.

    • kevincox@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      10 months ago

      Especially since sudo is generally quite short lived. Unless it is leaking a significant amount of memory waiting for authentication that never comes it is insignificant. It would actually be pretty easy to argue that sudo just shouldn’t free memory at all. This would be better for security (all pointers live forever) and possibly faster as upon exec the kernel can just wipe all state rather than having free carefully account for the releases.