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:
Willy Tarreau
2014-11-25 19:45:11 +01:00
parent 696a2910a0
commit 7dfca9daec
3 changed files with 12 additions and 5 deletions

View File

@@ -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 */
/*