[queue] Fix memory leak in queue_make_item
This commit is contained in:
parent
100e08da9d
commit
35df9455b9
|
@ -1122,7 +1122,7 @@ queue_make_item(uint32_t dbmfi_id)
|
||||||
qp.limit = 0;
|
qp.limit = 0;
|
||||||
qp.sort = S_NONE;
|
qp.sort = S_NONE;
|
||||||
snprintf(buf, sizeof(buf), "f.id = %" PRIu32, dbmfi_id);
|
snprintf(buf, sizeof(buf), "f.id = %" PRIu32, dbmfi_id);
|
||||||
qp.filter = strdup(buf);
|
qp.filter = buf;
|
||||||
|
|
||||||
item = queue_make(&qp);
|
item = queue_make(&qp);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue