Tim Duesterhus
041a626a8a
BUG/MINOR: sample: Free str.area in smp_check_const_meth
...
Given the following example configuration:
listen foo
mode http
bind *:8080
http-request set-var(txn.leak) meth(GET)
server x example.com:80
Running a configuration check with valgrind reports:
==25992== 4 bytes in 1 blocks are definitely lost in loss record 1 of 344
==25992== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==25992== by 0x4E239D: my_strndup (tools.c:2261)
==25992== by 0x581E20: make_arg_list (arg.c:253)
==25992== by 0x4DE91D: sample_parse_expr (sample.c:890)
==25992== by 0x58E304: parse_store (vars.c:772)
==25992== by 0x566A3F: parse_http_req_cond (http_rules.c:95)
==25992== by 0x4A4CE6: cfg_parse_listen (cfgparse-listen.c:1339)
==25992== by 0x494C59: readcfgfile (cfgparse.c:2049)
==25992== by 0x545145: init (haproxy.c:2029)
==25992== by 0x421E42: main (haproxy.c:3175)
After this patch is applied the leak is gone as expected.
This is a fairly minor leak, but it can add up for many uses of the `bool()`
sample fetch. The bug most likely exists since the `bool()` sample fetch was
introduced in commit cc103299c75c530ab3637a1698306145bdc85552. The fix may
be backported to HAProxy 1.6+.
2020-07-07 16:52:35 +02:00
..
2020-07-01 23:27:06 +02:00
2020-07-07 16:52:35 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-07-06 14:34:32 +02:00
2020-06-11 10:18:59 +02:00
2020-07-07 14:30:38 +02:00
2020-06-11 10:18:56 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:56 +02:00
2020-07-07 16:52:35 +02:00
2020-06-11 10:18:59 +02:00
2020-07-06 19:08:03 +02:00
2020-07-02 10:11:44 +02:00
2020-06-11 10:18:58 +02:00
2020-06-12 16:18:02 +02:00
2020-06-11 10:18:59 +02:00
2020-06-29 14:26:05 +02:00
2020-06-14 08:00:19 +02:00
2020-07-07 14:31:01 +02:00
2020-06-11 10:18:59 +02:00
2020-07-05 20:26:04 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-07-06 14:34:32 +02:00
2020-06-29 09:26:59 +02:00
2020-06-11 09:31:11 +02:00
2020-06-11 09:31:11 +02:00
2020-06-11 09:31:11 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 09:31:11 +02:00
2020-06-11 09:31:11 +02:00
2020-06-11 09:31:11 +02:00
2020-06-11 09:31:11 +02:00
2020-06-16 11:30:33 +02:00
2020-06-23 10:04:54 +02:00
2020-06-23 10:04:54 +02:00
2020-06-23 10:04:54 +02:00
2020-06-23 10:04:54 +02:00
2020-06-23 10:04:54 +02:00
2020-06-11 10:18:59 +02:00
2020-07-06 14:34:32 +02:00
2020-06-11 10:18:59 +02:00
2020-06-23 10:04:54 +02:00
2020-06-11 10:18:58 +02:00
2020-07-06 14:34:32 +02:00
2020-06-25 21:50:20 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-26 11:27:28 +02:00
2020-07-05 21:50:02 +02:00
2020-06-11 10:18:59 +02:00
2020-07-07 16:52:35 +02:00
2020-06-11 10:18:56 +02:00
2020-06-11 10:18:59 +02:00
2020-07-06 14:34:32 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:57 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-07-03 18:30:54 +02:00
2020-07-06 14:34:32 +02:00
2020-07-06 14:34:32 +02:00
2020-07-06 14:34:32 +02:00
2020-06-26 11:27:28 +02:00
2020-06-11 10:18:59 +02:00
2020-07-06 14:34:32 +02:00
2020-07-06 14:34:32 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-07-07 14:28:43 +02:00
2016-01-11 07:31:35 +01:00
2020-06-11 10:18:59 +02:00
2020-06-19 16:57:51 +02:00
2020-07-03 17:49:33 +02:00
2020-07-07 14:29:18 +02:00
2020-07-06 14:34:32 +02:00
2020-07-06 14:34:32 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-07-05 21:50:02 +02:00
2020-06-11 10:18:59 +02:00
2020-07-06 14:34:32 +02:00
2020-06-11 10:18:59 +02:00
2020-06-29 10:36:37 +02:00
2020-06-11 10:18:59 +02:00
2020-07-06 14:34:32 +02:00
2020-06-26 11:27:28 +02:00
2020-06-11 10:18:59 +02:00
2020-07-02 15:19:57 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-07-06 14:34:32 +02:00
2020-06-11 10:18:59 +02:00
2020-07-07 16:52:35 +02:00
2020-07-02 19:05:30 +02:00
2020-06-11 10:18:58 +02:00
2019-04-01 07:44:56 +02:00
2020-06-11 10:18:58 +02:00
2020-06-11 10:18:59 +02:00
2020-07-06 14:34:32 +02:00
2020-07-06 14:34:32 +02:00
2020-06-25 15:40:10 +02:00
2020-07-07 16:14:08 +02:00
2020-07-06 19:08:03 +02:00
2020-06-11 10:18:58 +02:00
2020-06-29 16:29:11 +02:00
2020-06-26 11:27:28 +02:00
2020-06-25 21:50:20 +02:00
2020-06-28 01:41:56 +02:00
2020-07-02 17:17:42 +02:00
2020-06-15 18:16:20 +02:00
2020-06-28 16:23:09 +02:00
2020-06-11 10:18:59 +02:00
2020-07-06 14:34:32 +02:00
2020-07-06 14:34:32 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-07-06 14:34:32 +02:00
2020-06-16 23:36:04 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:58 +02:00
2019-04-01 07:44:56 +02:00