/* Deallocation of the molecule causes deallocation of the pathset, which makes the pathset invalid. */ dt_dealloc ( molecule ); if ( dt_invalid ( pathset ) == 1 ) printf ( "The pathset is invalid.\n" );