diff options
author | DoHyun Pyun <dh79.pyun@samsung.com> | 2020-02-17 11:37:34 +0900 |
---|---|---|
committer | DoHyun Pyun <dh79.pyun@samsung.com> | 2020-02-17 11:39:34 +0900 |
commit | 233b8b67b8c0bcd575119f5ee7aae27500141f0f (patch) | |
tree | 8178d7bac1b93a54f5820fc24c532e8ccb8f7011 | |
parent | 5a87401df2302023b341fe2ebfd4a8b39bf55a89 (diff) | |
download | ua-plugin-wifi-dummy-233b8b67b8c0bcd575119f5ee7aae27500141f0f.tar.gz ua-plugin-wifi-dummy-233b8b67b8c0bcd575119f5ee7aae27500141f0f.tar.bz2 ua-plugin-wifi-dummy-233b8b67b8c0bcd575119f5ee7aae27500141f0f.zip |
Fix the coverity issue (incorrect deallocator used)submit/tizen/20200218.012430accepted/tizen/unified/20200218.145851
Change-Id: I6658cb8d5b1b038318151374776815ed0753ae13
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
-rw-r--r-- | src/wifi-networkmanager.c | 2 | ||||
-rw-r--r-- | src/wifi-plugin.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/wifi-networkmanager.c b/src/wifi-networkmanager.c index 2d54339..c1083bd 100644 --- a/src/wifi-networkmanager.c +++ b/src/wifi-networkmanager.c @@ -195,7 +195,7 @@ bool __nm_get_gateway_address(char *gateway) if (ret == CONNECTION_ERROR_NONE) { g_strlcpy(gateway, gateway_local, IP_ADDRESS_STRING_SIZE); - free(gateway_local); + g_free(gateway_local); } else { UA_WIFI_ERR("get gateway failed"); g_strlcpy(gateway, "0.0.0.0", IP_ADDRESS_STRING_SIZE); diff --git a/src/wifi-plugin.c b/src/wifi-plugin.c index 26e41cb..68b0573 100644 --- a/src/wifi-plugin.c +++ b/src/wifi-plugin.c @@ -363,7 +363,7 @@ static int add_device(uas_device_info_t *device) g_idle_add(__add_device_send, NULL); } - free(wifi_info); + g_free(wifi_info); FUNC_EXIT; return UAS_STATUS_SUCCESS; |