Step 4: Cleaning up

An application can call ct_ds_dropobj to deallocate each directory object that it received through its directory callback.

Alternatively, directory objects are dropped implicitly when the application calls ct_con_drop to drop the parent connection.