mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-16 00:17:11 +03:00
fix free() typo
This commit is contained in:
@@ -219,7 +219,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);
|
||||||
@@ -241,7 +241,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