mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-15 08:14:28 +08:00
client: Fix use of g_free
g_free shall only be used with pointer allocated with g_* functions.
This commit is contained in:
parent
8f970c44e6
commit
8cfef5aa0c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user