client: Fix use of g_free

g_free shall only be used with pointer allocated with g_* functions.
This commit is contained in:
Luiz Augusto von Dentz 2018-05-21 11:35:06 +03:00
parent 8f970c44e6
commit 8cfef5aa0c

View File

@ -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;
}