mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-12-02 00:01:37 +01:00
BUG/MINOR: sample: free err2 in smp_resolve_args for type ARGT_REG
The err2 may be leaking memory in case an error occurred as a result of regex_comp() call.
This commit is contained in:
parent
9262b7109e
commit
40ab88899c
@ -1638,6 +1638,7 @@ int smp_resolve_args(struct proxy *p, char **err)
|
|||||||
*err ? *err : "", cur->file, cur->line,
|
*err ? *err : "", cur->file, cur->line,
|
||||||
arg->data.str.area,
|
arg->data.str.area,
|
||||||
cur->arg_pos + 1, conv_pre, conv_ctx, conv_pos, ctx, cur->kw, where, p->id, err2);
|
cur->arg_pos + 1, conv_pre, conv_ctx, conv_pos, ctx, cur->kw, where, p->id, err2);
|
||||||
|
ha_free(&err2);
|
||||||
cfgerr++;
|
cfgerr++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user