From: Abhimanyu Swami Date: Sat, 1 Oct 2022 14:57:38 +0000 (+0530) Subject: Coverity issue fixed X-Git-Tag: accepted/tizen/7.0/unified/20221110.060438^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba6d3475d80703f1cc4b8050937adf32941bcf5d;p=platform%2Fcore%2Faccount%2Ffido-client.git Coverity issue fixed Change-Id: I55c665dbaa27ac4fc8f8b2c92983ba1287984a44 Signed-off-by: Abhimanyu Swami --- diff --git a/server/fido_app_id_handler.c b/server/fido_app_id_handler.c index 395d751..6af5d45 100755 --- a/server/fido_app_id_handler.c +++ b/server/fido_app_id_handler.c @@ -240,7 +240,13 @@ __get_pub_key(const char *json_id_str) } char *pub_key = strtok_r(NULL, ":", &save_ptr); - RET_IF_FAIL(pub_key != NULL, NULL); + + if (pub_key == NULL) { + free(tempStr); + return NULL; + } + + free(tempStr); return pub_key; }