aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2017-01-10 20:43:32 +0000
committerAlan Somers <asomers@FreeBSD.org>2017-01-10 20:43:32 +0000
commitcdb7a6fc4244d794a3e0c312c161adfd8442eef6 (patch)
tree9e246514d52c11ab9f7bb9a8aae43a9f32b363c8 /etc
parent442f47d697a12c484b7fbd399afe457eefc4a031 (diff)
downloadsrc-cdb7a6fc4244d794a3e0c312c161adfd8442eef6.tar.gz
src-cdb7a6fc4244d794a3e0c312c161adfd8442eef6.zip
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
Notes
Notes: svn path=/head/; revision=311895
Diffstat (limited to 'etc')
-rw-r--r--etc/mtree/BSD.tests.dist2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/mtree/BSD.tests.dist b/etc/mtree/BSD.tests.dist
index 620f95c04665..60e2dbea9ae6 100644
--- a/etc/mtree/BSD.tests.dist
+++ b/etc/mtree/BSD.tests.dist
@@ -644,6 +644,8 @@
..
soelim
..
+ tail
+ ..
tar
..
timeout