Fix dereference of freed delta
Fix dereference of freed delta

I was accidentally using a value that I had just freed.  This
moves the clearing of the delta internal flags into a better place.

falqas/libgit2,MrHacky/libgit2,MrHacky/libgit2,Corillian/libgit2,mhp/libgit2,jeffhostetler/public_libgit2,mrksrm/Mingijura,whoisj/libgit2,t0xicCode/libgit2,nokiddin/libgit2,jflesch/libgit2-mariadb,saurabhsuniljain/libgit2,mcanthony/libgit2,KTXSoftware/libgit2,KTXSoftware/libgit2,Tousiph/Demo1,kenprice/libgit2,mhp/libgit2,raybrad/libit2,chiayolin/libgit2,JIghtuse/libgit2,Snazz2001/libgit2,whoisj/libgit2,stewid/libgit2,jeffhostetler/public_libgit2,mrksrm/Mingijura,MrHacky/libgit2,dleehr/libgit2,Aorjoa/libgit2_maked_lib,sim0629/libgit2,yongthecoder/libgit2,leoyanggit/libgit2,Aorjoa/libgit2_maked_lib,mcanthony/libgit2,Snazz2001/libgit2,saurabhsuniljain/libgit2,claudelee/libgit2,spraints/libgit2,falqas/libgit2,KTXSoftware/libgit2,mcanthony/libgit2,skabel/manguse,amyvmiwei/libgit2,sygool/libgit2,joshtriplett/libgit2,dleehr/libgit2,yosefhackmon/libgit2,yosefhackmon/libgit2,linquize/libgit2,t0xicCode/libgit2,iankronquist/libgit2,rcorre/libgit2,JIghtuse/libgit2,sygool/libgit2,spraints/libgit2,stewid/libgit2,oaastest/libgit2,mrksrm/Mingijura,ardumont/libgit2,JIghtuse/libgit2,dleehr/libgit2,Snazz2001/libgit2,swisspol/DEMO-libgit2,whoisj/libgit2,KTXSoftware/libgit2,leoyanggit/libgit2,maxiaoqian/libgit2,sim0629/libgit2,jflesch/libgit2-mariadb,oaastest/libgit2,joshtriplett/libgit2,mhp/libgit2,jeffhostetler/public_libgit2,Corillian/libgit2,magnus98/TEST,iankronquist/libgit2,kenprice/libgit2,kenprice/libgit2,kissthink/libgit2,rcorre/libgit2,nokiddin/libgit2,saurabhsuniljain/libgit2,stewid/libgit2,amyvmiwei/libgit2,kissthink/libgit2,yosefhackmon/libgit2,yongthecoder/libgit2,stewid/libgit2,maxiaoqian/libgit2,dleehr/libgit2,oaastest/libgit2,since2014/libgit2,KTXSoftware/libgit2,yosefhackmon/libgit2,mrksrm/Mingijura,claudelee/libgit2,raybrad/libit2,mingyaaaa/libgit2,t0xicCode/libgit2,spraints/libgit2,oaastest/libgit2,claudelee/libgit2,chiayolin/libgit2,kissthink/libgit2,whoisj/libgit2,sim0629/libgit2,magnus98/TEST,Corillian/libgit2,stewid/libgit2,falqas/libgit2,Aorjoa/libgit2_maked_lib,iankronquist/libgit2,JIghtuse/libgit2,ardumont/libgit2,magnus98/TEST,rcorre/libgit2,nokiddin/libgit2,swisspol/DEMO-libgit2,ardumont/libgit2,t0xicCode/libgit2,stewid/libgit2,yongthecoder/libgit2,chiayolin/libgit2,mcanthony/libgit2,yongthecoder/libgit2,saurabhsuniljain/libgit2,jflesch/libgit2-mariadb,kenprice/libgit2,Tousiph/Demo1,falqas/libgit2,spraints/libgit2,mrksrm/Mingijura,since2014/libgit2,raybrad/libit2,mcanthony/libgit2,Tousiph/Demo1,nokiddin/libgit2,claudelee/libgit2,kenprice/libgit2,rcorre/libgit2,nokiddin/libgit2,jeffhostetler/public_libgit2,skabel/manguse,leoyanggit/libgit2,claudelee/libgit2,jflesch/libgit2-mariadb,iankronquist/libgit2,chiayolin/libgit2,rcorre/libgit2,swisspol/DEMO-libgit2,sygool/libgit2,oaastest/libgit2,maxiaoqian/libgit2,linquize/libgit2,t0xicCode/libgit2,chiayolin/libgit2,linquize/libgit2,JIghtuse/libgit2,maxiaoqian/libgit2,linquize/libgit2,chiayolin/libgit2,sim0629/libgit2,sim0629/libgit2,leoyanggit/libgit2,Corillian/libgit2,yosefhackmon/libgit2,raybrad/libit2,spraints/libgit2,magnus98/TEST,jflesch/libgit2-mariadb,kissthink/libgit2,Tousiph/Demo1,skabel/manguse,falqas/libgit2,since2014/libgit2,mingyaaaa/libgit2,joshtriplett/libgit2,iankronquist/libgit2,Snazz2001/libgit2,joshtriplett/libgit2,sim0629/libgit2,Corillian/libgit2,mcanthony/libgit2,Snazz2001/libgit2,amyvmiwei/libgit2,oaastest/libgit2,saurabhsuniljain/libgit2,skabel/manguse,claudelee/libgit2,magnus98/TEST,MrHacky/libgit2,evhan/libgit2,evhan/libgit2,Snazz2001/libgit2,jflesch/libgit2-mariadb,rcorre/libgit2,mrksrm/Mingijura,maxiaoqian/libgit2,falqas/libgit2,joshtriplett/libgit2,sygool/libgit2,Tousiph/Demo1,linquize/libgit2,amyvmiwei/libgit2,amyvmiwei/libgit2,sygool/libgit2,evhan/libgit2,since2014/libgit2,magnus98/TEST,swisspol/DEMO-libgit2,mhp/libgit2,yongthecoder/libgit2,kissthink/libgit2,leoyanggit/libgit2,leoyanggit/libgit2,Aorjoa/libgit2_maked_lib,Aorjoa/libgit2_maked_lib,mingyaaaa/libgit2,evhan/libgit2,iankronquist/libgit2,skabel/manguse,dleehr/libgit2,kenprice/libgit2,mhp/libgit2,swisspol/DEMO-libgit2,mhp/libgit2,swisspol/DEMO-libgit2,KTXSoftware/libgit2,t0xicCode/libgit2,jeffhostetler/public_libgit2,JIghtuse/libgit2,since2014/libgit2,skabel/manguse,amyvmiwei/libgit2,ardumont/libgit2,ardumont/libgit2,MrHacky/libgit2,sygool/libgit2,yosefhackmon/libgit2,kissthink/libgit2,MrHacky/libgit2,raybrad/libit2,Tousiph/Demo1,jeffhostetler/public_libgit2,linquize/libgit2,whoisj/libgit2,whoisj/libgit2,mingyaaaa/libgit2,saurabhsuniljain/libgit2,nokiddin/libgit2,maxiaoqian/libgit2,joshtriplett/libgit2,yongthecoder/libgit2,since2014/libgit2,mingyaaaa/libgit2,mingyaaaa/libgit2,dleehr/libgit2,Corillian/libgit2,ardumont/libgit2,spraints/libgit2