From 61f2d674b03b6c4c538be5b42684e209ecc18504 Mon Sep 17 00:00:00 2001 From: Michael McConville Date: Sun, 3 Jan 2016 16:59:44 -0500 Subject: [PATCH] Remove NULL-checks before free() These are never necessary when using the standard library. --- freebsd/FreeBSDProcessList.c | 8 ++++---- 1 file 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);