MINOR: proxy: add free_logformat_list() helper function
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 23 Nov 2023 16:30:10 +0000 (17:30 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 24 Nov 2023 15:27:55 +0000 (16:27 +0100)
commit481e9317e3ac277f32e6db2dbfdaec2d122a7f38
treeba0c85e2500176b345b88283b9a47f0e5dab4e62
parent8f878d5969e8f1fb64a48db55e7786af435a0a47
MINOR: proxy: add free_logformat_list() helper function

There are multiple places inside free_proxy() where we need to perform
the exact same operation: freeing a logformat list which includes freeing
every member.

To prevent code duplication, we add the free_logformat_list() function
that takes such list as parameter and does all the freeing job on its
own.
src/proxy.c