Don't forget to free capability object
This commit is contained in:
parent
5a2b38378c
commit
d06f02be1c
1 changed files with 2 additions and 0 deletions
|
@ -926,6 +926,8 @@ SYS_Linux_DropRoot(char *user)
|
|||
LOG_FATAL(LOGF_SysLinux, "cap_set_proc() failed");
|
||||
}
|
||||
|
||||
cap_free(cap);
|
||||
|
||||
LOG(LOGS_INFO, LOGF_SysLinux, "Privileges dropped to user %s", user);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue