Tim Duesterhus
d0c0ca2720
CLEANUP: Add static void hlua_deinit()
...
Compiling HAProxy with USE_LUA=1 and running a configuration check within
valgrind with a very simple configuration such as:
listen foo
bind *:8080
Will report quite a few possible leaks afterwards:
==24048== LEAK SUMMARY:
==24048== definitely lost: 0 bytes in 0 blocks
==24048== indirectly lost: 0 bytes in 0 blocks
==24048== possibly lost: 95,513 bytes in 1,209 blocks
==24048== still reachable: 329,960 bytes in 71 blocks
==24048== suppressed: 0 bytes in 0 blocks
Printing these possible leaks shows that all of them are caused by Lua.
Luckily Lua makes it *very* easy to free all used memory, so let's do
this on shutdown.
Afterwards this patch is applied the output looks much better:
==24199== LEAK SUMMARY:
==24199== definitely lost: 0 bytes in 0 blocks
==24199== indirectly lost: 0 bytes in 0 blocks
==24199== possibly lost: 0 bytes in 0 blocks
==24199== still reachable: 329,960 bytes in 71 blocks
==24199== suppressed: 0 bytes in 0 blocks
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-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: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-07 16:52:35 +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