[CLEANUP] remove 65 useless NULL checks before free
C specification clearly states that free(NULL) is a no-op.
So remove useless checks before calling free.
diff --git a/src/backend.c b/src/backend.c
index 7fbc720..f134671 100644
--- a/src/backend.c
+++ b/src/backend.c
@@ -2078,10 +2078,10 @@
}
curproxy->lbprm.algo &= ~BE_LB_ALGO;
curproxy->lbprm.algo |= BE_LB_ALGO_PH;
- if (curproxy->url_param_name)
- free(curproxy->url_param_name);
+
+ free(curproxy->url_param_name);
curproxy->url_param_name = strdup(args[1]);
- curproxy->url_param_len = strlen(args[1]);
+ curproxy->url_param_len = strlen(args[1]);
if (*args[2]) {
if (strcmp(args[2], "check_post")) {
snprintf(err, errlen, "'balance url_param' only accepts check_post modifier.");