mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-04-18 12:14:56 +02: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
@ -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…
x
Reference in New Issue
Block a user