mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
BUG/MINOR: ot: removed dead code in flt_ot_parse_cfg_str()
The local variable str was declared but never assigned a value other than NULL. The error-handling block that called flt_ot_conf_str_free(&str) on it was therefore a no-op. Removed both the unused variable and the dead cleanup path.
This commit is contained in:
parent
de41121c0c
commit
9fa34e592a
1 changed files with 1 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue