[queue] Fix memory leak in queue_make_item

This commit is contained in:
chme 2015-09-26 09:33:48 +02:00
parent 100e08da9d
commit 35df9455b9

View File

@ -1122,7 +1122,7 @@ queue_make_item(uint32_t dbmfi_id)
qp.limit = 0;
qp.sort = S_NONE;
snprintf(buf, sizeof(buf), "f.id = %" PRIu32, dbmfi_id);
qp.filter = strdup(buf);
qp.filter = buf;
item = queue_make(&qp);