Diff between 857d9b96b38401ce5666172ddea115d37ad6af70 and 5934f133d44aeda4e682bd15daf2dc93bb7d355f
Changed Files
| File | Additions | Deletions | Status |
| mesh/manager.c | +1 | -1 | modified |
Full Patch
diff --git a/mesh/manager.c b/mesh/manager.c
index e16dbc5..0c98721 100644
--- a/mesh/manager.c
+++ b/mesh/manager.c
@@ -709,7 +709,7 @@ static struct l_dbus_message *start_scan_call(struct l_dbus *dbus,
req = l_queue_remove_if(scans, by_node_svr, &new_req);
if (!req)
- req = l_malloc(sizeof(new_req));
+ req = l_new(struct scan_req, 1);
if (req->timeout) {
l_timeout_remove(req->timeout);