1. Free the allocated memory and Close the open file when exit. 2. Calculate PI FV header size with PI extension header and extension header entry.
1. Free the allocated memory and Close the open file when exit.
2. Calculate PI FV header size with PI extension header and extension header entry.

git-svn-id: f3880c1fc5096ce2109c8aec392d8e07f619f417@1724 c2973edb-eda0-4c78-bc6a-9341b269661f

bitcrystal/buildtools-BaseTools,tianocore/buildtools-BaseTools,tianocore/buildtools-BaseTools,bitcrystal/buildtools-BaseTools,bitcrystal/buildtools-BaseTools,tianocore/buildtools-BaseTools,tianocore/buildtools-BaseTools,bitcrystal/buildtools-BaseTools,bitcrystal/buildtools-BaseTools,tianocore/buildtools-BaseTools