]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: lua: simplify hlua_alloc() to only rely on realloc()
authorWilly Tarreau <w@1wt.eu>
Wed, 2 Dec 2020 11:26:29 +0000 (12:26 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 2 Dec 2020 20:53:16 +0000 (21:53 +0100)
commitd36c7fa5ec1edb2eb0faed1ffde72aee6b875d44
tree94a9c154934143c7f9bd8c0d3714087593819c31
parentfdabf4954860942d314fe3059a869bed207e78d4
MINOR: lua: simplify hlua_alloc() to only rely on realloc()

The function really has the semantics of a realloc() except that it
also passes the old size to help with accounting. No need to special
case the free or malloc, realloc does everything we need.
src/hlua.c