Don't try to free buf field of bs structure. Interpret return value of stream_readInt and stream_writeInt correctly: 0 means no error.
Don't try to free buf field of bs structure.
Interpret return value of stream_readInt and stream_writeInt
correctly: 0 means no error.

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