Commit 4a777a3a authored by Stefan Reif's avatar Stefan Reif

Fix memory leak

The PrrtPacketTimeoutTable uses the timestamp as index, not the sequence
number.
parent a50b55be
Pipeline #899 failed with stages
in 2 minutes and 27 seconds
......@@ -22,7 +22,7 @@ bool PrrtPacketTimeoutTable_destroy(PrrtPacketTimeoutTable *table)
{
List* list = List_create();
BPTree_get_range(table->packetList, list, 0, SEQNO_SPACE - 1);
BPTree_get_range(table->packetList, list, 0, MAX_TIMESTAMP);
while (List_count(list) > 0) {
PrrtPacket *packet = List_shift(list);
PrrtPacketDataPayload* payload = packet->payload;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment