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