Fix the coverity issues 56/281456/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.062900 accepted/tizen/7.0/unified/hotfix/20221116.110628 accepted/tizen/unified/20220920.110657 tizen_7.0_m2_release
authorWootak Jung <wootak.jung@samsung.com>
Mon, 19 Sep 2022 07:28:33 +0000 (16:28 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Mon, 19 Sep 2022 07:29:33 +0000 (16:29 +0900)
Change-Id: Iea3544fb1a71b9cde9693646b598310777bae66e

profile.h

index d42a183..a18a94f 100755 (executable)
--- 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);
                        }
                }
        }