]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: buffers: Move swap_buffer into buffer.c and add deinit_buffer function
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 29 Aug 2017 13:30:11 +0000 (15:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 5 Sep 2017 08:34:30 +0000 (10:34 +0200)
commitad405f171493fae6ff63f0400f575277a8cd1ecf
tree457bef1b61ac6e518da03527f7bf211b4ce00fc5
parent084aa9615b827d67b82df3d61fa3112fa588c786
MINOR: buffers: Move swap_buffer into buffer.c and add deinit_buffer function

swap_buffer is a global variable only used by buffer_slow_realign. So it has
been moved from global.h to buffer.c and it is allocated by init_buffer
function. deinit_buffer function has been added to release it. It is also used
to destroy the buffers' pool.
include/common/buffer.h
include/types/global.h
src/buffer.c
src/haproxy.c