diff options
author | Michael McConville <mmcco@mykolab.com> | 2016-01-03 16:59:44 -0500 |
---|---|---|
committer | Michael McConville <mmcco@mykolab.com> | 2016-01-03 16:59:44 -0500 |
commit | 61f2d674b03b6c4c538be5b42684e209ecc18504 (patch) | |
tree | e462b6e68a6f4cee881177ba746037fc8707de55 /freebsd | |
parent | be9edc5d4302fc83281e6323bc1df72796c1b49c (diff) |
Remove NULL-checks before free()
These are never necessary when using the standard library.
Diffstat (limited to 'freebsd')
-rw-r--r-- | freebsd/FreeBSDProcessList.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/freebsd/FreeBSDProcessList.c b/freebsd/FreeBSDProcessList.c index e8d6f137..133a3bbb 100644 --- a/freebsd/FreeBSDProcessList.c +++ b/freebsd/FreeBSDProcessList.c @@ -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); |