mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
p2p: Do not leak 'str'
DeviceType setting is stored in 'str', but is never freed. Fix that.
This commit is contained in:
parent
2b2b6185e4
commit
0854592cc6
@ -4077,6 +4077,8 @@ struct p2p_device *p2p_device_update_from_genl(struct l_genl_msg *msg,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
l_free(str);
|
||||||
|
|
||||||
l_queue_push_tail(p2p_device_list, dev);
|
l_queue_push_tail(p2p_device_list, dev);
|
||||||
|
|
||||||
l_debug("Created P2P device %" PRIx64, dev->wdev_id);
|
l_debug("Created P2P device %" PRIx64, dev->wdev_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user