]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: applet: Add function to release appctx on error during init stage
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 12 May 2022 13:18:48 +0000 (15:18 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 May 2022 14:13:21 +0000 (16:13 +0200)
commitd0c4ec04b874f116fd82f445e7158c69ac1d6289
tree3f554ffc59e509e85cd6623b746095d8c4123846
parent8718c95c0a97bf656d826e1f8663c0ecedb1ddd2
MINOR: applet: Add function to release appctx on error during init stage

appctx_free_on_early_error() must be used to release a freshly created
frontend appctx if an error occurred during the init stage. It takes care to
release the stream instead of the appctx if it exists. For a backend appctx,
it just calls appctx_free().
include/haproxy/applet.h
src/applet.c