--- a/toybox-8c78a7e5486d/toys/pending/tar.c	2014-08-10 10:19:48.000000000 +0530
+++ b/Toybox/toys/pending/tar.c	2014-12-01 04:07:17.229963693 +0530
@@ -547,7 +547,9 @@
       break;
     }
   }
-  return ((value)?xstrdup(value) : NULL);
+  if (value) value = xstrdup(value);
+  free(buf);
+  return value;
 }
 
 static void tar_skip(struct archive_handler *tar, int sz)
