Clean reconstructed objects outside pack window
Clean reconstructed objects outside pack window

Object walk reconstructs delta objects but these are not cleaned up
after they got out the pack window. Without this change all
reconstructed objects reside in memory.

restoreOriginal call is moved before calling Size(). Now we can not
guarantee that the object is already undeltified.

Signed-off-by: Javi Fontan <828c1a17681e8566a17a1a4801ea67306010b273@sourced.tech>

src-d/go-git,src-d/go-git,mcuadros/go-git,go-git/go-git,mcuadros/go-git,go-git/go-git