Same issues as previous check-in. Deal with the return of BATins properly, avoiding an accidental free.
Same issues as previous check-in. Deal with the return of BATins
properly, avoiding an accidental free.

zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb