Feeder: prevent resource leak

I confirmed the leak using Valgrind and tested the fix with a simple program using the same workflow as the feeder.
fixes CID 27760 found by Coverity
This commit is contained in:
Christian Beer 2015-11-09 18:08:03 +01:00
parent fc142d75c8
commit 770fbf138f
1 changed files with 1 additions and 0 deletions

View File

@ -563,6 +563,7 @@ void feeder_loop() {
for (int i=0; i<napps; i++) {
DB_WORK_ITEM* wi = new DB_WORK_ITEM();
work_items.push_back(*wi);
delete wi;
}
while (1) {