From: Wootak Jung Date: Mon, 19 Sep 2022 07:28:33 +0000 (+0900) Subject: Fix the coverity issues X-Git-Tag: accepted/tizen/unified/20220920.110657^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f67b3dd3a47992e33b8a02f6323f8123a340031b;p=platform%2Fupstream%2Fbluez.git Fix the coverity issues Change-Id: Iea3544fb1a71b9cde9693646b598310777bae66e --- diff --git a/profile.h b/profile.h index d42a1839..a18a94f6 100755 --- a/profile.h +++ b/profile.h @@ -122,12 +122,12 @@ static inline int __get_profile_from_model_config_xml(const char *field, char ** node_value = (char *)xmlNodeListGetString(xml_doc, cur_node->xmlChildrenNode, 1); if (node_value) { *value = strdup(node_value); - free(node_name); - free(node_value); + xmlFree(node_name); + xmlFree(node_value); break; } } - free(node_name); + xmlFree(node_name); } } }