Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
60e55786
Commit
60e55786
authored
Oct 13, 2018
by
Alan Barr
Committed by
Hisham Muhammad
Feb 10, 2019
Browse files
Prevent possible NULL pointer deference
Raised by cppcheck
parent
79c939eb
Changes
1
Show whitespace changes
Inline
Side-by-side
darwin/DarwinProcessList.c
View file @
60e55786
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment