mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Check for failure in allocations.
This commit is contained in:
@ -16,7 +16,7 @@ in the source distribution for its full text.
|
||||
}*/
|
||||
|
||||
ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList, uid_t userId) {
|
||||
ProcessList* this = calloc(1, sizeof(ProcessList));
|
||||
ProcessList* this = xCalloc(1, sizeof(ProcessList));
|
||||
ProcessList_init(this, Class(Process), usersTable, pidWhiteList, userId);
|
||||
|
||||
return this;
|
||||
|
Reference in New Issue
Block a user