[Toybox] [PATCH] fixes for the 'ts' command

Oliver Webb aquahobbyist at proton.me
Tue Sep 12 18:25:10 PDT 2023


This patch fixes a memory leak in ts by making sure it frees the pointers given by xgetline()

I knew about this leak for a few days and was planning to submit a patch for it some time in the future, 
but now that ts got promoted I feel like I should submit it sooner rather then later

The other fix is that if it's doing -i or -s it uses gmtime() instead of localtime() 
so the timestamp starts at 00:00:00 instead of something like 20:00:00 for PDT or 18:00:00 for CST.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2876beb6.patch
Type: text/x-patch
Size: 1230 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20230913/fffa1bb5/attachment.bin>


More information about the Toybox mailing list