MINOR: ist: Add `struct ist istalloc(size_t)` and `void istfree(struct ist*)`
authorTim Duesterhus <tim@bastelstu.be>
Thu, 5 Mar 2020 16:56:32 +0000 (17:56 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 5 Mar 2020 18:52:07 +0000 (19:52 +0100)
commit35005d01d2cafede9b1dc7d9f9049347f224e651
tree5525697fab6ce7a1225b036accc80c4649a23380
parente296d3e5f00c33152d4153ee6d5dc5b728ee8343
MINOR: ist: Add `struct ist istalloc(size_t)` and `void istfree(struct ist*)`

`istalloc` allocates memory and returns an `ist` with the size `0` that points
to this allocation.

`istfree` frees the pointed memory and clears the pointer.
include/common/ist.h