]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: hlua: Fix memory leaks on error path when registering a cli keyword
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 12 Apr 2021 13:31:29 +0000 (15:31 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 12 Apr 2021 17:05:05 +0000 (19:05 +0200)
commit3a9a12bb2afee04fe416c8bdfacd4af7d1d95a3a
tree1731701e501269b10b2fa42353908cda817cef1e
parent5c028d7f9d898e490f4afa04a4a0f07f39c89889
BUG/MINOR: hlua: Fix memory leaks on error path when registering a cli keyword

When an error occurred in hlua_register_cli(), the allocated lua function
and keyword must be released to avoid memory leaks.

This patch depends on "MINOR: hlua: Add function to release a lua
function". It may be backported in all stable versions.
src/hlua.c