]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: hlua: Fix memory leaks on error path when registering a task
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 12 Apr 2021 10:24:47 +0000 (12:24 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 12 Apr 2021 17:04:42 +0000 (19:04 +0200)
commit5294ec0708ab686e59c48252d1ef6e8c7e40972b
tree35fd670fdae24e0f2c1099c7b546abb108cd134d
parentdda44442d5b1a082fa798112ec70067da49ad875
BUG/MINOR: hlua: Fix memory leaks on error path when registering a task

When an error occurred in hlua_register_task(), the allocated lua context
and task must be released to avoid memory leaks.

This patch may be backported in all stable versions.
src/hlua.c