Do some extra initialization to previent double frees. Plus some other extra minor safety measures.
Do some extra initialization to previent double frees.
Plus some other extra minor safety measures.

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