[core] clear chunk buffer upon release

(before adding back to reusable buffer pool)
personal/stbuehler/fix-fdevent
Glenn Strauss 4 years ago
parent b74188e5b3
commit 758c58cda5
  1. 1
      src/chunk.c

@ -131,6 +131,7 @@ void chunk_buffer_release(buffer *b) {
c->mem = b;
c->next = chunks;
chunks = c;
buffer_string_set_length(b, 0);
}
else {
buffer_free(b);

Loading…
Cancel
Save