Remove NULL-checks before free()

These are never necessary when using the standard library.
This commit is contained in:
Michael McConville 2016-01-03 16:59:44 -05:00
parent be9edc5d43
commit 61f2d674b0
1 changed files with 4 additions and 4 deletions

View File

@ -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);