packet may be on memory queue even if they are not on the disk queue
This commit is contained in:
parent
9078f66d26
commit
84d4b65f43
1 changed files with 5 additions and 6 deletions
11
buffer.c
11
buffer.c
|
@ -209,14 +209,13 @@ pkt_unstore(th_pkt_t *pkt)
|
|||
storage_deref(pkt->pkt_storage);
|
||||
TAILQ_REMOVE(&store_disk_queue, pkt, pkt_disk_link);
|
||||
store_disk_size -= pkt->pkt_payloadlen;
|
||||
|
||||
if(pkt->pkt_payload != NULL) {
|
||||
TAILQ_REMOVE(&store_mem_queue, pkt, pkt_mem_link);
|
||||
store_mem_size -= pkt->pkt_payloadlen;
|
||||
}
|
||||
|
||||
pkt->pkt_storage = NULL;
|
||||
}
|
||||
|
||||
if(pkt->pkt_payload != NULL) {
|
||||
TAILQ_REMOVE(&store_mem_queue, pkt, pkt_mem_link);
|
||||
store_mem_size -= pkt->pkt_payloadlen;
|
||||
}
|
||||
pkt_deref(pkt);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue