mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
sectionsd: fix memleak with unused events
This commit is contained in:
committed by
[CST] Focus
parent
da327c099b
commit
b1e0fcb0c8
@@ -416,6 +416,7 @@ xprintf("addEvent: ch %012" PRIx64 " running %d (%s) got_CN %d\n", evt.get_chann
|
|||||||
continue;
|
continue;
|
||||||
/* else: keep the old event with the lower table_id */
|
/* else: keep the old event with the lower table_id */
|
||||||
unlockEvents();
|
unlockEvents();
|
||||||
|
delete eptr;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ((*x)->times.begin()->startzeit >= end_time)
|
if ((*x)->times.begin()->startzeit >= end_time)
|
||||||
@@ -431,6 +432,7 @@ xprintf("addEvent: ch %012" PRIx64 " running %d (%s) got_CN %d\n", evt.get_chann
|
|||||||
dprintf("%s: don't replace 0x%012" PRIx64 ".%02x with 0x%012" PRIx64 ".%02x\n",
|
dprintf("%s: don't replace 0x%012" PRIx64 ".%02x with 0x%012" PRIx64 ".%02x\n",
|
||||||
__func__, x_key, (*x)->table_id, e_key, e->table_id);
|
__func__, x_key, (*x)->table_id, e_key, e->table_id);
|
||||||
unlockEvents();
|
unlockEvents();
|
||||||
|
delete eptr;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* here we have an overlapping event */
|
/* here we have an overlapping event */
|
||||||
|
Reference in New Issue
Block a user