mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
fix free() typo
This commit is contained in:
@@ -218,7 +218,7 @@ char *update_rule_target(cmd_parms *cmd, directory_config *dcfg,
|
||||
}
|
||||
}
|
||||
if(target != NULL)
|
||||
free(replace);
|
||||
free(target);
|
||||
|
||||
|
||||
rc = msre_parse_targets(ruleset, p, rule->targets, &my_error_msg);
|
||||
@@ -240,7 +240,7 @@ end:
|
||||
if(replace != NULL)
|
||||
free(replace);
|
||||
if(target != NULL)
|
||||
free(replace);
|
||||
free(target);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user