Fix leak in SGMatrix::get_row_vector function