Elektrine lite

← Feed

@ska@social.treehouse.systems

2026-09-23 08:32 UTC

using glibusing strdupon an argv element, which will be available for the whole lifetime of the programyou cannot see it here without the full context, but it loops around n while path is defined outside of the loop, so it needs to free on every iteration or it just overwrites path and leaks

Replies (1)

  • @ska@social.treehouse.systems The argv array is mutable, so there's an argument for defensive copies if something else in the program might mutate them. But that just raises even more questions.

    Open ##4818394