coreos/rocket — pull request #308 by gprggr (2014-12-29 21:19:36+00:00)
Title: pkg/tar: fixing possible nil pointer dereference

If os.OpenFile(...) returns err != nil, f will be nil. So f.Close() would cause a "nil pointer dereference".

Also closing dir.