resolve: fix possible memleak
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 5 Feb 2022 13:03:19 +0000 (22:03 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 8 Feb 2022 08:38:42 +0000 (17:38 +0900)
commitfe8c5ce615ee2123f17b1f0b3728c439e19e4b5b
treebb3bd224aa5dc96370d7b9560f1e08ebe049c73f
parent73bfd7be042cc63e7649242b377ad494bf74ea4b
resolve: fix possible memleak

Fortunately, unlike the issue fixed in the previous commit, the memleak
should be superficial and not become apparent, as the queries handled
here are managed by the stub stream, and will be freed when the stream
is closed.

Just for safety, and slightly reducing the runtime memory usage by the
stub stream.
src/resolve/resolved-dns-stub.c