]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: proxy: use the global file names for conf->file
authorWilly Tarreau <w@1wt.eu>
Thu, 19 Sep 2024 13:35:11 +0000 (15:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Sep 2024 13:38:19 +0000 (15:38 +0200)
commitb325453c36958249b4a3e9d8225b34db2a3047c4
tree29c254cc059fa7b2b726c06bfd32e7bce4f9558a
parent9ab21a3c2d07c29c72d0c230778d224458af51a2
MINOR: proxy: use the global file names for conf->file

Proxy file names are assigned a bit everywhere (resolvers, peers,
cli, logs, proxy). All these elements were enumerated and now use
copy_file_name(). The only ha_free() call was turned to drop_file_name().

As a bonus side effect, a 300k backend config saved 14 MB of RAM.
include/haproxy/proxy-t.h
src/cfgparse.c
src/cli.c
src/log.c
src/proxy.c
src/resolvers.c