mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 23:45:07 -05:00
Don't forget to free capability object
This commit is contained in:
@@ -926,6 +926,8 @@ SYS_Linux_DropRoot(char *user)
|
|||||||
LOG_FATAL(LOGF_SysLinux, "cap_set_proc() failed");
|
LOG_FATAL(LOGF_SysLinux, "cap_set_proc() failed");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cap_free(cap);
|
||||||
|
|
||||||
LOG(LOGS_INFO, LOGF_SysLinux, "Privileges dropped to user %s", user);
|
LOG(LOGS_INFO, LOGF_SysLinux, "Privileges dropped to user %s", user);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user