parent
751e541776
commit
deefdd2f9d
|
@ -34,10 +34,7 @@ int uh_buf_grow(struct uh_buf *buf, size_t size)
|
||||||
|
|
||||||
void uh_buf_free(struct uh_buf *buf)
|
void uh_buf_free(struct uh_buf *buf)
|
||||||
{
|
{
|
||||||
if (buf->base) {
|
uh_buf_init(buf, 0);
|
||||||
free(buf->base);
|
|
||||||
uh_buf_init(buf, 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t uh_buf_append(struct uh_buf *buf, const void *data, size_t len)
|
size_t uh_buf_append(struct uh_buf *buf, const void *data, size_t len)
|
||||||
|
|
Loading…
Reference in New Issue