Free buffer.  Found by Coverity. Also, make sure the value returned by getConsoleInput is actually free-able. Use correct types.
Free buffer.  Found by Coverity.
Also, make sure the value returned by getConsoleInput is actually free-able.
Use correct types.

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