darktable-org/darktable — pull request #263 by mlq (2013-07-11 08:58:34+00:00)
Title: Resolve resource leak in dt_camctl_import

The handle is only closed iff gp_camera_file_get returns GP_OK. This patch makes sure to close the previously openend handle also if gp_camera_file_get fails.