mirror of https://github.com/xzeldon/htop.git
Remove NULL-checks before free()
These are never necessary when using the standard library.
This commit is contained in:
parent
be9edc5d43
commit
61f2d674b0
|
@ -188,10 +188,10 @@ void ProcessList_delete(ProcessList* this) {
|
|||
const FreeBSDProcessList* fpl = (FreeBSDProcessList*) this;
|
||||
if (fpl->kd) kvm_close(fpl->kd);
|
||||
|
||||
if (fpl->cp_time_o != NULL) free(fpl->cp_time_o);
|
||||
if (fpl->cp_time_n != NULL) free(fpl->cp_time_n);
|
||||
if (fpl->cp_times_o != NULL) free(fpl->cp_times_o);
|
||||
if (fpl->cp_times_n != NULL) free(fpl->cp_times_n);
|
||||
free(fpl->cp_time_o);
|
||||
free(fpl->cp_time_n);
|
||||
free(fpl->cp_times_o);
|
||||
free(fpl->cp_times_n);
|
||||
|
||||
ProcessList_done(this);
|
||||
free(this);
|
||||
|
|
Loading…
Reference in New Issue