From: Luiz Augusto von Dentz Date: Mon, 21 May 2018 08:35:06 +0000 (+0300) Subject: client: Fix use of g_free X-Git-Tag: accepted/tizen/unified/20190522.085452~1^2~90 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2689bc1c2eab11ca5838bb2cb84419635e09d1a6;p=platform%2Fupstream%2Fbluez.git client: Fix use of g_free g_free shall only be used with pointer allocated with g_* functions. Change-Id: I21104ef31d029e65544f5a087d2881c8088837dc Signed-off-by: Amit Purwar --- diff --git a/client/advertising.c b/client/advertising.c index dc49ef6..7ac3675 100644 --- a/client/advertising.c +++ b/client/advertising.c @@ -733,7 +733,7 @@ void ad_advertise_name(DBusConnection *conn, bool value) ad.name = value; if (!value) { - g_free(ad.local_name); + free(ad.local_name); ad.local_name = NULL; }