BUG/MINOR: lua: Fix memory leak error cases in hlua_config_prepend_path
authorTim Duesterhus <tim@bastelstu.be>
Sun, 3 Jan 2021 19:04:36 +0000 (20:04 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 3 Jan 2021 19:37:16 +0000 (20:37 +0100)
commit621e74afd1f9d4f9f65812c8befcafb0ba0aff37
tree198644fbce75c35ee9a43db84a0463a1d8d182ee
parenta7ebffef660c2c83590798e0f1acceb9001ff92c
BUG/MINOR: lua: Fix memory leak error cases in hlua_config_prepend_path

In case of an error `p` is not properly freed.

Minor leak during configuration parsing in out of memory situations, no
backport needed.
src/hlua.c