Resolve resource leak in dt_camctl_import