commit | ad405f171493fae6ff63f0400f575277a8cd1ecf | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Tue Aug 29 15:30:11 2017 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Sep 05 10:34:30 2017 +0200 |
tree | 457bef1b61ac6e518da03527f7bf211b4ce00fc5 | |
parent | 084aa9615b827d67b82df3d61fa3112fa588c786 [diff] |
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.