Fix memory leaks in extract tar.
Merge topic 'fix_tar_leaks' into next

57a2df22 Fix memory leaks in extract tar.