Reassign value to *res after cleanup. This fixes bug [ 1411919 ] Mserver, Crash on Gold demo (when used incorrectly).
Reassign value to *res after cleanup.
This fixes bug [ 1411919 ] Mserver, Crash on Gold demo (when used
incorrectly).

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