]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: sink: remove useless cleanup in sink_new_from_logger()
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 4 Jun 2025 14:51:04 +0000 (16:51 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 5 Jun 2025 07:58:50 +0000 (09:58 +0200)
commit89b04f2191392dc6b72121e5cc649cb0a64fa3cf
treebe3229e83b3939ac2dd2e6dd4118caa206894dd8
parent8c4bb8cab37f72c451bc7685eaf58cb1c2f5fae2
CLEANUP: sink: remove useless cleanup in sink_new_from_logger()

As reported by Ilya in GH #2994, some cleanup parts in
sink_new_from_logger() function are not used.

We can actually simplify the cleanup logic to remove dead code, let's
do that by renaming "error_final" label to "error" and only making use
of the "error" label, because sink_free() already takes care of proper
cleanup for all sink members.
src/sink.c