BUG/MINOR: hlua: Fix memory leaks on error path when registering a service
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 12 Apr 2021 13:11:44 +0000 (15:11 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 12 Apr 2021 17:04:42 +0000 (19:04 +0200)
commit5c028d7f9d898e490f4afa04a4a0f07f39c89889
tree6e8a5cfb7388c17b4fa7517c0d967c6e975c57a3
parent4fc9da01d21469ab137cf5607753640485a82fe7
BUG/MINOR: hlua: Fix memory leaks on error path when registering a service

When an error occurred in hlua_register_service(), 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