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:
@ -17,7 +17,7 @@ in the source distribution for its full text.
|
||||
}*/
|
||||
|
||||
Process* UnsupportedProcess_new(Settings* settings) {
|
||||
Process* this = calloc(1, sizeof(Process));
|
||||
Process* this = xCalloc(1, sizeof(Process));
|
||||
Object_setClass(this, Class(Process));
|
||||
Process_init(this, settings);
|
||||
return this;
|
||||
|
Reference in New Issue
Block a user