MCPcopy Create free account
hub / github.com/coreutils/coreutils / free_buffer

Function free_buffer

src/csplit.c:388–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386#endif
387
388static void
389free_buffer (struct buffer_record *buf)
390{
391 for (struct line *l = buf->line_start; l;)
392 {
393 struct line *n = l->next;
394 free (l);
395 l = n;
396 }
397 free (buf->buffer);
398 free (buf);
399}
400
401/* Return a new buffer of at least MINSIZE bytes. */
402

Callers 2

load_bufferFunction · 0.85
remove_lineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected