Login
You're viewing the social.mochi.academy public feed.
  • Sep 23, 2026, 8:32 AM
    • using glib
    • using strdup
    • on an argv element, which will be available for the whole lifetime of the program
    • you 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
    💬 1🔄 0⭐ 3

Replies