free setprops in error case (Coverity)
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14655 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
@@ -6106,8 +6106,10 @@ camera_get_config (Camera *camera, CameraWidget **window, GPContext *context)
|
||||
}
|
||||
}
|
||||
|
||||
if (!params->deviceinfo.DevicePropertiesSupported_len)
|
||||
if (!params->deviceinfo.DevicePropertiesSupported_len) {
|
||||
free (setprops);
|
||||
return GP_OK;
|
||||
}
|
||||
|
||||
/* Last menu is "Other", a generic property fallback window. */
|
||||
gp_widget_new (GP_WIDGET_SECTION, _("Other PTP Device Properties"), §ion);
|
||||
|
||||
Reference in New Issue
Block a user