fix free() typo

This commit is contained in:
brenosilva
2011-09-17 13:39:36 +00:00
parent 304f4cbf7b
commit f02026c440

View File

@@ -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;
}