MINOR: sink: add helper function to deallocate sink struct
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 6 Jul 2023 14:55:55 +0000 (16:55 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Sep 2023 14:06:39 +0000 (16:06 +0200)
commit5a8755681d455b2d7d0f1310a511d61ca7a6d664
treee0dc18a04c89287a79d3380d988b22208794eee3
parent6049a478e474fdce36429c717e99a0ad04c02eff
MINOR: sink: add helper function to deallocate sink struct

In this patch we move sink freeing logic outside of sink_deinit() function
in order to create the sink_free() helper function that could be used
on error paths for example.
src/sink.c