Skip to content

Commit

Permalink
cap_free() after useing libcap
Browse files Browse the repository at this point in the history
  • Loading branch information
Moe-hacker committed Nov 23, 2024
1 parent d02baf7 commit d7213a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ruri.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,8 @@ static void detect_suid_or_capability(void)
if (strlen(caps_str) > 0) {
ruri_warning("{red}Warning: capabilities detected on ruri, this is unsafe desu QwQ\n");
}
cap_free(caps);
cap_free(caps_str);
}
// The real main() function.
int ruri(int argc, char **argv)
Expand Down

0 comments on commit d7213a1

Please sign in to comment.