Commit 61f2d674 authored by Michael McConville's avatar Michael McConville
Browse files

Remove NULL-checks before free()

These are never necessary when using the standard library.
parent be9edc5d
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment