Hi, I am a new contributor to this repository :). I came across the open issue #165 which is a leaksanitizer report about a leak that happens on ./whois 64.233.165.113. I was able to reproduce the bug on running the command and was able to generate a patch for it. The leak happens within functions handle_query when server is reassigned with return value of do_query without freeing. Note that at this point server must have a non Null value because a Null check exists earlier in the code.
I have verified that after the patch, the leak no longer occurs through leaksanitizer (and there is no double free for that matter).
Hi, I am a new contributor to this repository :). I came across the open issue #165 which is a leaksanitizer report about a leak that happens on
./whois 64.233.165.113
. I was able to reproduce the bug on running the command and was able to generate a patch for it. The leak happens within functionshandle_query
whenserver
is reassigned with return value ofdo_query
without freeing. Note that at this pointserver
must have a non Null value because a Null check exists earlier in the code.I have verified that after the patch, the leak no longer occurs through leaksanitizer (and there is no double free for that matter).
Please let me know if the patch is useful :)