mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-21 05:06:56 +00: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,
|
||||
arg->data.str.area,
|
||||
cur->arg_pos + 1, conv_pre, conv_ctx, conv_pos, ctx, cur->kw, where, p->id, err2);
|
||||
ha_free(&err2);
|
||||
cfgerr++;
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user