Fixed USE_REPLICATION ifndefs to release last_buf properly.  Closes #117.
Fixed USE_REPLICATION ifndefs to release last_buf properly.  Closes #117.

ajose01/rethinkdb,greyhwndz/rethinkdb,4talesa/rethinkdb,AntouanK/rethinkdb,captainpete/rethinkdb,wujf/rethinkdb,marshall007/rethinkdb,marshall007/rethinkdb,dparnell/rethinkdb,spblightadv/rethinkdb,KSanthanam/rethinkdb,JackieXie168/rethinkdb,RubenKelevra/rethinkdb,Wilbeibi/rethinkdb,captainpete/rethinkdb,RubenKelevra/rethinkdb,victorbriz/rethinkdb,yakovenkodenis/rethinkdb,nviennot/rethinkdb,wkennington/rethinkdb,ayumilong/rethinkdb,captainpete/rethinkdb,sbusso/rethinkdb,nviennot/rethinkdb,marshall007/rethinkdb,AtnNn/rethinkdb,elkingtonmcb/rethinkdb,wojons/rethinkdb,4talesa/rethinkdb,bchavez/rethinkdb,ayumilong/rethinkdb,marshall007/rethinkdb,rrampage/rethinkdb,wojons/rethinkdb,4talesa/rethinkdb,robertjpayne/rethinkdb,sontek/rethinkdb,AntouanK/rethinkdb,yaolinz/rethinkdb,matthaywardwebdesign/rethinkdb,jesseditson/rethinkdb,spblightadv/rethinkdb,dparnell/rethinkdb,AtnNn/rethinkdb,mquandalle/rethinkdb,jesseditson/rethinkdb,Qinusty/rethinkdb,mcanthony/rethinkdb,bpradipt/rethinkdb,dparnell/rethinkdb,sbusso/rethinkdb,wkennington/rethinkdb,catroot/rethinkdb,JackieXie168/rethinkdb,matthaywardwebdesign/rethinkdb,jfriedly/rethinkdb,gavioto/rethinkdb,mbroadst/rethinkdb,losywee/rethinkdb,spblightadv/rethinkdb,ajose01/rethinkdb,gdi2290/rethinkdb,rrampage/rethinkdb,nviennot/rethinkdb,sontek/rethinkdb,marshall007/rethinkdb,losywee/rethinkdb,greyhwndz/rethinkdb,ajose01/rethinkdb,mcanthony/rethinkdb,losywee/rethinkdb,KSanthanam/rethinkdb,ajose01/rethinkdb,RubenKelevra/rethinkdb,bchavez/rethinkdb,Qinusty/rethinkdb,jmptrader/rethinkdb,jfriedly/rethinkdb,tempbottle/rethinkdb,gdi2290/rethinkdb,jmptrader/rethinkdb,gavioto/rethinkdb,mbroadst/rethinkdb,wojons/rethinkdb,KSanthanam/rethinkdb,jfriedly/rethinkdb,nviennot/rethinkdb,pap/rethinkdb,tempbottle/rethinkdb,jmptrader/rethinkdb,Wilbeibi/rethinkdb,eliangidoni/rethinkdb,catroot/rethinkdb,gdi2290/rethinkdb,victorbriz/rethinkdb,Qinusty/rethinkdb,jesseditson/rethinkdb,scripni/rethinkdb,matthaywardwebdesign/rethinkdb,mbroadst/rethinkdb,Qinusty/rethinkdb,urandu/rethinkdb,AtnNn/rethinkdb,tempbottle/rethinkdb,wojons/rethinkdb,lenstr/rethinkdb,jfriedly/rethinkdb,greyhwndz/rethinkdb,yakovenkodenis/rethinkdb,ayumilong/rethinkdb,rrampage/rethinkdb,mquandalle/rethinkdb,mbroadst/rethinkdb,elkingtonmcb/rethinkdb,mbroadst/rethinkdb,eliangidoni/rethinkdb,captainpete/rethinkdb,AntouanK/rethinkdb,yakovenkodenis/rethinkdb,RubenKelevra/rethinkdb,dparnell/rethinkdb,gdi2290/rethinkdb,ajose01/rethinkdb,matthaywardwebdesign/rethinkdb,bchavez/rethinkdb,robertjpayne/rethinkdb,grandquista/rethinkdb,robertjpayne/rethinkdb,4talesa/rethinkdb,wojons/rethinkdb,KSanthanam/rethinkdb,dparnell/rethinkdb,KSanthanam/rethinkdb,mquandalle/rethinkdb,sebadiaz/rethinkdb,sebadiaz/rethinkdb,yakovenkodenis/rethinkdb,wkennington/rethinkdb,bpradipt/rethinkdb,urandu/rethinkdb,urandu/rethinkdb,sbusso/rethinkdb,mcanthony/rethinkdb,jmptrader/rethinkdb,wujf/rethinkdb,jesseditson/rethinkdb,gavioto/rethinkdb,niieani/rethinkdb,JackieXie168/rethinkdb,scripni/rethinkdb,gavioto/rethinkdb,AntouanK/rethinkdb,Wilbeibi/rethinkdb,lenstr/rethinkdb,mbroadst/rethinkdb,alash3al/rethinkdb,Qinusty/rethinkdb,Qinusty/rethinkdb,AtnNn/rethinkdb,wojons/rethinkdb,AtnNn/rethinkdb,mquandalle/rethinkdb,mbroadst/rethinkdb,bpradipt/rethinkdb,yaolinz/rethinkdb,mquandalle/rethinkdb,wkennington/rethinkdb,tempbottle/rethinkdb,4talesa/rethinkdb,greyhwndz/rethinkdb,elkingtonmcb/rethinkdb,lenstr/rethinkdb,bchavez/rethinkdb,4talesa/rethinkdb,grandquista/rethinkdb,dparnell/rethinkdb,sontek/rethinkdb,yakovenkodenis/rethinkdb,catroot/rethinkdb,elkingtonmcb/rethinkdb,ayumilong/rethinkdb,eliangidoni/rethinkdb,niieani/rethinkdb,gdi2290/rethinkdb,jfriedly/rethinkdb,wujf/rethinkdb,KSanthanam/rethinkdb,losywee/rethinkdb,catroot/rethinkdb,niieani/rethinkdb,robertjpayne/rethinkdb,scripni/rethinkdb,sebadiaz/rethinkdb,yakovenkodenis/rethinkdb,victorbriz/rethinkdb,yaolinz/rethinkdb,eliangidoni/rethinkdb,lenstr/rethinkdb,pap/rethinkdb,tempbottle/rethinkdb,rrampage/rethinkdb,yaolinz/rethinkdb,pap/rethinkdb,AntouanK/rethinkdb,elkingtonmcb/rethinkdb,pap/rethinkdb,gavioto/rethinkdb,eliangidoni/rethinkdb,wkennington/rethinkdb,yakovenkodenis/rethinkdb,jesseditson/rethinkdb,jesseditson/rethinkdb,victorbriz/rethinkdb,robertjpayne/rethinkdb,nviennot/rethinkdb,niieani/rethinkdb,grandquista/rethinkdb,bpradipt/rethinkdb,jfriedly/rethinkdb,bpradipt/rethinkdb,RubenKelevra/rethinkdb,nviennot/rethinkdb,wujf/rethinkdb,ayumilong/rethinkdb,robertjpayne/rethinkdb,matthaywardwebdesign/rethinkdb,rrampage/rethinkdb,matthaywardwebdesign/rethinkdb,Qinusty/rethinkdb,jmptrader/rethinkdb,lenstr/rethinkdb,alash3al/rethinkdb,sebadiaz/rethinkdb,grandquista/rethinkdb,urandu/rethinkdb,ayumilong/rethinkdb,sbusso/rethinkdb,matthaywardwebdesign/rethinkdb,sebadiaz/rethinkdb,nviennot/rethinkdb,marshall007/rethinkdb,JackieXie168/rethinkdb,spblightadv/rethinkdb,catroot/rethinkdb,yaolinz/rethinkdb,mquandalle/rethinkdb,Wilbeibi/rethinkdb,wujf/rethinkdb,JackieXie168/rethinkdb,ayumilong/rethinkdb,mquandalle/rethinkdb,ayumilong/rethinkdb,Qinusty/rethinkdb,bchavez/rethinkdb,gavioto/rethinkdb,robertjpayne/rethinkdb,gavioto/rethinkdb,sbusso/rethinkdb,mcanthony/rethinkdb,AtnNn/rethinkdb,spblightadv/rethinkdb,pap/rethinkdb,sbusso/rethinkdb,grandquista/rethinkdb,wkennington/rethinkdb,4talesa/rethinkdb,robertjpayne/rethinkdb,jesseditson/rethinkdb,losywee/rethinkdb,dparnell/rethinkdb,ajose01/rethinkdb,wujf/rethinkdb,jfriedly/rethinkdb,mcanthony/rethinkdb,bpradipt/rethinkdb,mcanthony/rethinkdb,grandquista/rethinkdb,mcanthony/rethinkdb,rrampage/rethinkdb,jmptrader/rethinkdb,spblightadv/rethinkdb,grandquista/rethinkdb,mbroadst/rethinkdb,alash3al/rethinkdb,jfriedly/rethinkdb,AntouanK/rethinkdb,scripni/rethinkdb,alash3al/rethinkdb,gavioto/rethinkdb,niieani/rethinkdb,alash3al/rethinkdb,wkennington/rethinkdb,tempbottle/rethinkdb,marshall007/rethinkdb,alash3al/rethinkdb,lenstr/rethinkdb,sontek/rethinkdb,losywee/rethinkdb,yaolinz/rethinkdb,bchavez/rethinkdb,dparnell/rethinkdb,marshall007/rethinkdb,AntouanK/rethinkdb,bpradipt/rethinkdb,mquandalle/rethinkdb,victorbriz/rethinkdb,robertjpayne/rethinkdb,niieani/rethinkdb,gdi2290/rethinkdb,catroot/rethinkdb,spblightadv/rethinkdb,grandquista/rethinkdb,elkingtonmcb/rethinkdb,greyhwndz/rethinkdb,eliangidoni/rethinkdb,lenstr/rethinkdb,wkennington/rethinkdb,sontek/rethinkdb,gdi2290/rethinkdb,greyhwndz/rethinkdb,captainpete/rethinkdb,victorbriz/rethinkdb,pap/rethinkdb,JackieXie168/rethinkdb,RubenKelevra/rethinkdb,eliangidoni/rethinkdb,captainpete/rethinkdb,scripni/rethinkdb,Wilbeibi/rethinkdb,niieani/rethinkdb,bchavez/rethinkdb,elkingtonmcb/rethinkdb,alash3al/rethinkdb,KSanthanam/rethinkdb,sbusso/rethinkdb,captainpete/rethinkdb,victorbriz/rethinkdb,pap/rethinkdb,sontek/rethinkdb,rrampage/rethinkdb,eliangidoni/rethinkdb,victorbriz/rethinkdb,dparnell/rethinkdb,lenstr/rethinkdb,jmptrader/rethinkdb,Qinusty/rethinkdb,AtnNn/rethinkdb,scripni/rethinkdb,sebadiaz/rethinkdb,ajose01/rethinkdb,sbusso/rethinkdb,sebadiaz/rethinkdb,pap/rethinkdb,mcanthony/rethinkdb,grandquista/rethinkdb,yaolinz/rethinkdb,jesseditson/rethinkdb,catroot/rethinkdb,greyhwndz/rethinkdb,eliangidoni/rethinkdb,sebadiaz/rethinkdb,losywee/rethinkdb,AntouanK/rethinkdb,tempbottle/rethinkdb,JackieXie168/rethinkdb,alash3al/rethinkdb,ajose01/rethinkdb,captainpete/rethinkdb,nviennot/rethinkdb,urandu/rethinkdb,bchavez/rethinkdb,wujf/rethinkdb,bchavez/rethinkdb,KSanthanam/rethinkdb,JackieXie168/rethinkdb,wojons/rethinkdb,JackieXie168/rethinkdb,yakovenkodenis/rethinkdb,wojons/rethinkdb,sontek/rethinkdb,urandu/rethinkdb,rrampage/rethinkdb,elkingtonmcb/rethinkdb,RubenKelevra/rethinkdb,Wilbeibi/rethinkdb,scripni/rethinkdb,tempbottle/rethinkdb,niieani/rethinkdb,yaolinz/rethinkdb,spblightadv/rethinkdb,bpradipt/rethinkdb,urandu/rethinkdb,jmptrader/rethinkdb,mbroadst/rethinkdb,Wilbeibi/rethinkdb,urandu/rethinkdb,Wilbeibi/rethinkdb,greyhwndz/rethinkdb,AtnNn/rethinkdb,sontek/rethinkdb,losywee/rethinkdb,matthaywardwebdesign/rethinkdb,scripni/rethinkdb,RubenKelevra/rethinkdb,catroot/rethinkdb,4talesa/rethinkdb,bpradipt/rethinkdb