index: fix memory leak
index: fix memory leak

We need really free vectors on index freeing, not only clear.

Signed-off-by: Kirill A. Shutemov <9b153e80bc985b32d577460a8a24e398d4182978@shutemov.name>

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