commit | e583ea583a5e028c25130e25c2d259be3e4fe148 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Nov 24 11:30:16 2014 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Dec 24 23:47:32 2014 +0100 |
tree | 7be50adb5bcc7fd90b809fa51aecfe5444ce2fa7 | |
parent | 474cf54a97ca19fa0f5a1de9489330f348836531 [diff] |
MEDIUM: buffer: use b_alloc() to allocate and initialize a buffer b_alloc() now allocates a buffer and initializes it to the size specified in the pool minus the size of the struct buffer itself. This ensures that callers do not need to care about buffer details anymore. Also this never applies memory poisonning, which is slow and useless on buffers.