From: Randeep Singh Date: Wed, 16 May 2018 07:05:44 +0000 (+0530) Subject: Fixed coverity issues X-Git-Tag: accepted/tizen/unified/20180521.094832^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=372fde7bd1e45186dc096d8dfe702b49c4979c77;p=platform%2Fcore%2Faccount%2Ffido-client.git Fixed coverity issues Change-Id: Ie78aac97b0bd37ab45883623f8d65e0ca4caab78 Signed-off-by: Randeep Singh --- diff --git a/common/fido_json_handler.c b/common/fido_json_handler.c index d7cb399..e5c276e 100755 --- a/common/fido_json_handler.c +++ b/common/fido_json_handler.c @@ -1906,8 +1906,10 @@ _uaf_composer_compose_final_challenge(const char *app_id, const char *challenge, GError *chb_err = NULL; bool chb_parsed = json_parser_load_from_data(chb_parser, ch_bin, -1, &chb_err); - if (chb_parsed == FALSE) + if (chb_parsed == FALSE) { + g_object_unref(builder); return NULL; + } JsonNode *chb_root = json_parser_get_root(chb_parser); if (chb_root == NULL) {