Fix memory leak, since the set_error dup errmsg now