Should you call blob_buf_free() after calling blob_buf_init()?

Should you call blob_buf_free() after calling blob_buf_init()?

Okay nice Felix answered on the mailing list:

If a buffer was already allocated, blob_buf_init reuses it. You can keep reusing it as many times as you want. You only need to call blob_buf_free if you explicitly want to free the buffer memory (e.g. on exit, or if the blob_buf is on stack)

1 Like