mirror of https://github.com/xzeldon/htop.git
Prevent possible NULL pointer deference
Raised by cppcheck
This commit is contained in:
parent
79c939eb84
commit
60e557868a
|
@ -84,9 +84,8 @@ void ProcessList_freeCPULoadInfo(processor_cpu_load_info_t *p) {
|
|||
if(0 != munmap(*p, vm_page_size)) {
|
||||
CRT_fatalError("Unable to free old CPU load information\n");
|
||||
}
|
||||
}
|
||||
|
||||
*p = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
unsigned ProcessList_allocateCPULoadInfo(processor_cpu_load_info_t *p) {
|
||||
|
|
Loading…
Reference in New Issue