mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-21 20:53:21 +02:00
MINOR: buffer: only use b_free to release buffers
We don't call pool_free2(pool2_buffers) anymore, we only call b_free() to do the job. This ensures that we can start to centralize the releasing of buffers.
This commit is contained in:
@@ -409,6 +409,13 @@ static inline struct buffer *b_alloc(struct buffer **buf)
|
||||
return *buf;
|
||||
}
|
||||
|
||||
/* Releases buffer *buf.
|
||||
*/
|
||||
static inline void b_free(struct buffer **buf)
|
||||
{
|
||||
pool_free2(pool2_buffer, *buf);
|
||||
}
|
||||
|
||||
#endif /* _COMMON_BUFFER_H */
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user