}
catch (GSSException e)
{
+ /* Cleanup */
+ if ( NULL != cmd )
+ {
+ delete(cmd);
+ cmd = NULL;
+ }
+
JSONObject return_values;
return_values.set("major_status", e.getMajor());
return_values.set("minor_status", e.getMinor());
}
catch (std::invalid_argument e)
{
+ /* Cleanup */
+ if ( NULL != cmd )
+ {
+ delete(cmd);
+ cmd = NULL;
+ }
+
JSONObject return_values, errors;
errors.set("major_status_message", "An error occurred in parsing the JSON arguments.\0");
errors.set("minor_status_message", e.what());
response.set("return_values", return_values);
}
- /* Cleanup */
- if ( NULL != cmd )
- {
- delete(cmd);
- cmd = NULL;
- }
-
/* return */
}