mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-08 23:32:27 +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)
|
if(target != NULL)
|
||||||
free(replace);
|
free(target);
|
||||||
|
|
||||||
|
|
||||||
rc = msre_parse_targets(ruleset, p, rule->targets, &my_error_msg);
|
rc = msre_parse_targets(ruleset, p, rule->targets, &my_error_msg);
|
||||||
@@ -240,7 +240,7 @@ end:
|
|||||||
if(replace != NULL)
|
if(replace != NULL)
|
||||||
free(replace);
|
free(replace);
|
||||||
if(target != NULL)
|
if(target != NULL)
|
||||||
free(replace);
|
free(target);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user