mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 03:50:10 +01:00
libnm/device: fix memleak in nm_device_wifi_request_scan_options*()
Fixes: 7691fe5753 ('libnm: add new functions allowing passing options to RequestScan() D-Bus call')
This commit is contained in:
parent
b9ff785744
commit
92285cfd3e
1 changed files with 1 additions and 1 deletions
|
|
@ -288,7 +288,7 @@ prepare_scan_options (GVariant *options)
|
|||
else {
|
||||
g_variant_builder_init (&builder, G_VARIANT_TYPE_VARDICT);
|
||||
g_variant_iter_init (&iter, options);
|
||||
while (g_variant_iter_loop (&iter, "{sv}", &key, &value))
|
||||
while (g_variant_iter_loop (&iter, "{&sv}", &key, &value))
|
||||
{
|
||||
// FIXME: verify options here?
|
||||
g_variant_builder_add (&builder, "{sv}", key, value);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue