Hi Rob and toybox Users,
I'm a newcomer to this email list, so if I'm using incorrect patch formats
or should be emailing in a different way, please let me know.

In looking at tar.c, I noticed that, while parsing files, for the symlink
case there are two calls to xreadlink(). Both calls allocate a new char*,
but only one is ever freed.
I've attached a git diff to fix this. Please let me know if there's
anything else I should do to patch this.

Thanks!
+Chris

Attachment: 0001-Patch-out-memory-leak-in-tar.c.patch
Description: Binary data

_______________________________________________
Toybox mailing list
Toybox@lists.landley.net
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to