]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: lua/notification: memory leak
authorThierry FOURNIER <thierry.fournier@ozon.io>
Sun, 10 Dec 2017 16:10:57 +0000 (17:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 10 Dec 2017 18:38:58 +0000 (19:38 +0100)
commitcb14688496e3cca35a10b965fa644f14eb331595
tree1a10875acfc6a837920e67a235765db58bf3624c
parentd5b79835f8095cce3bb3f32374b571af46973112
BUG/MEDIUM: lua/notification: memory leak

The thread patches adds refcount for notifications. The notifications are
used with the Lua cosocket. These refcount free the notifications when
the session is cleared. In the Lua task case, it not have sessions, so
the nofications are never cleraed.

This patch adds a garbage collector for signals. The garbage collector
just clean the notifications for which the end point is disconnected.

This patch should be backported in 1.8
include/proto/task.h
src/hlua.c