commit | 3a9a12bb2afee04fe416c8bdfacd4af7d1d95a3a | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Mon Apr 12 15:31:29 2021 +0200 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Mon Apr 12 19:05:05 2021 +0200 |
tree | 1731701e501269b10b2fa42353908cda817cef1e | |
parent | 5c028d7f9d898e490f4afa04a4a0f07f39c89889 [diff] |
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.