mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-14 08:13:12 -05:00
dnstap io, fix memory leak if dnstap queue full.
This commit is contained in:
parent
82ac0071b7
commit
bb81684206
1 changed files with 1 additions and 0 deletions
|
|
@ -227,6 +227,7 @@ dt_msg_queue_submit(struct dt_msg_queue* mq, void* buf, size_t len)
|
|||
/* drop */
|
||||
lock_basic_unlock(&mq->lock);
|
||||
free(buf);
|
||||
free(entry);
|
||||
return;
|
||||
}
|
||||
mq->cursize += len;
|
||||
|
|
|
|||
Loading…
Reference in a new issue