freebsd-dev/usr.bin/tail
Alan Somers cdb7a6fc42 Fix memory leaks during "tail -r" of an irregular file
* Rewrite r_buf to use standard tail queues instead of a hand-rolled
  circular linked list. Free dynamic allocations when done.
* Remove an optimization for the case where the file is a multiple of 128KB
  in size and there is a scarcity of memory.
* Add ATF tests for "tail -r" and its variants.

Reported by:	Valgrind
Reviewed by:	ngie
MFC after:	4 weeks
Sponsored by:	Spectra Logic Corp
Differential Revision:	https://reviews.freebsd.org/D9067
2017-01-10 20:43:32 +00:00
..
tests Fix memory leaks during "tail -r" of an irregular file 2017-01-10 20:43:32 +00:00
extern.h
forward.c
Makefile Fix memory leaks during "tail -r" of an irregular file 2017-01-10 20:43:32 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
misc.c
read.c
reverse.c Fix memory leaks during "tail -r" of an irregular file 2017-01-10 20:43:32 +00:00
tail.1
tail.c