fix tar memleak delete []