sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit a2be57eca8b81efad54b9dcab48c4717f15b6ebd
parent bf9626d408bc5c5fd3e538d02686327ddc525d6e
Author: Connor Lane Smith <cls@lubutu.com>
Date:   Thu, 26 May 2011 16:24:56 -0100

tail: free rings
Diffstat:
Mtail.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tail.c b/tail.c @@ -69,8 +69,10 @@ taketail(FILE *fp, const char *str, long n) ; do { - if(ring[j]) + if(ring[j]) { fputs(ring[j], stdout); + free(ring[j]); + } } while((j = (j+1)%n) != i); free(ring); free(size);