diff --git a/addons/ot/src/parser.c b/addons/ot/src/parser.c index 0f8fc5495..e067501cd 100644 --- a/addons/ot/src/parser.c +++ b/addons/ot/src/parser.c @@ -359,8 +359,7 @@ static int flt_ot_parse_cfg_sample(const char *file, int linenum, char **args, s */ static int flt_ot_parse_cfg_str(const char *file, int linenum, char **args, struct list *head, char **err) { - struct flt_ot_conf_str *str = NULL; - int i, retval = ERR_NONE; + int i, retval = ERR_NONE; FLT_OT_FUNC("\"%s\", %d, %p, %p, %p:%p", file, linenum, args, head, FLT_OT_DPTR_ARGS(err)); @@ -368,9 +367,6 @@ static int flt_ot_parse_cfg_str(const char *file, int linenum, char **args, stru if (flt_ot_conf_str_init(args[i], linenum, head, err) == NULL) retval |= ERR_ABORT | ERR_ALERT; - if (retval & ERR_CODE) - flt_ot_conf_str_free(&str); - FLT_OT_RETURN_INT(retval); }