From f67b3dd3a47992e33b8a02f6323f8123a340031b Mon Sep 17 00:00:00 2001 From: Wootak Jung Date: Mon, 19 Sep 2022 16:28:33 +0900 Subject: [PATCH] Fix the coverity issues Change-Id: Iea3544fb1a71b9cde9693646b598310777bae66e --- profile.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/profile.h b/profile.h index d42a183..a18a94f 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); } } } -- 2.7.4