Skip to content

Commit 541707c

Browse files
author
Marc Stern
committed
removed useless code
1 parent 25a60e2 commit 541707c

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

apache2/re.c

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -519,18 +519,12 @@ char *update_rule_target_ex(modsec_rec *msr, msre_ruleset *ruleset, msre_rule *r
519519
}
520520

521521
end:
522-
if(target_list != NULL) {
522+
if(target_list != NULL)
523523
free(target_list);
524-
target_list = NULL;
525-
}
526-
if(replace != NULL) {
524+
if(replace != NULL)
527525
free(replace);
528-
replace = NULL;
529-
}
530-
if(target != NULL) {
526+
if(target != NULL)
531527
free(target);
532-
target = NULL;
533-
}
534528
return NULL;
535529
}
536530

0 commit comments

Comments
 (0)