Bug 4139 - unbound-host leaks memory on ANY
unbound-host leaks memory on ANY
Status: RESOLVED FIXED
Product: unbound
Classification: Unclassified
Component: server
1.7.3
x86_64 Linux
: P5 minor
Assigned To: unbound team
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-07-31 13:51 CEST by Petr Menšík
Modified: 2018-07-31 13:59 CEST (History)
2 users (show)

See Also:


Attachments
Free after print patch (394 bytes, patch)
2018-07-31 13:51 CEST, Petr Menšík
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Menšík 2018-07-31 13:51:18 CEST
Created attachment 518 [details]
Free after print patch

unbound-host will not free memory when in verbose mode and name does not exist.

Can be reproduced by:

valgrind --leak-check=full unbound-host -r -v localhost. -t ANY
Comment 1 Wouter Wijngaards 2018-07-31 13:59:02 CEST
Hi Petr,

Yes you are right, and that is the right solution.  Thank you for the report!  Fixed this in the code in the code repository.

Best regards, Wouter