BUG/MINOR: hlua: Fix memory leaks on error path when registering a fetch
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 12 Apr 2021 12:11:50 +0000 (14:11 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 12 Apr 2021 17:04:42 +0000 (19:04 +0200)
commit2567f18382a1e64ba67f397e93d57582b11c4b58
treee117ea01e73adc0f1316bfec253721b8267e36c6
parentaa22430bba5154487569e0911b8b662dd1b3aaf9
BUG/MINOR: hlua: Fix memory leaks on error path when registering a fetch

When an error occurred in hlua_register_fetches(), 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. It should fix #1112.
src/hlua.c