- backport from 5c9b24f
always free the DB result ( or else subsequent select queries will/might fail )