BUG/MINOR: hlua: Fix memory leaks on error path when registering a converter
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 12 Apr 2021 12:08:21 +0000 (14:08 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 12 Apr 2021 17:04:42 +0000 (19:04 +0200)
commitaa22430bba5154487569e0911b8b662dd1b3aaf9
tree0ebed138fc17f80e1ccdf3dbf28315881abbb025
parent5294ec0708ab686e59c48252d1ef6e8c7e40972b
BUG/MINOR: hlua: Fix memory leaks on error path when registering a converter

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