Use free() instead of g_free() 73/134573/1 accepted/tizen/unified/20170620.174111 submit/tizen/20170619.084208
authorchanywa <cbible.kim@samsung.com>
Mon, 19 Jun 2017 08:32:38 +0000 (17:32 +0900)
committerchanywa <cbible.kim@samsung.com>
Mon, 19 Jun 2017 08:32:38 +0000 (17:32 +0900)
Change-Id: I2ecedb65c3ab6a30046a6bed3a3e75d7ffa6c7e1

src/here_manager.cpp

index e3f963692727ba20ff772e850fea328850b89661..2d3c182f8154d1ab670cd5aacc2ac530ef45b172 100644 (file)
@@ -467,7 +467,8 @@ here_error_e HereManager::SetProxyAddress()
                MAPS_LOGD("Proxy = %s", (proxy_address ? proxy_address : "(null)"));
                Tizen::Maps::HereConfig::SetProxyAddress(proxy_address);
        }
-       g_free(proxy_address);
+       if (proxy_address)
+               free(proxy_address);
 
        return ConvertNetworkErrorCode(errorCode);
 }