Improved memory management code in ParseSoaReply()
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included Test results: $ python tools/test.py -I 'parallel/test-dns*' [00:00|% 100|+ 12|- 0]: Done
$ make test [06:23|% 100|+ 2429|- 2]: Done Failed tests are not due to this change.
-
commit message follows commit guidelines
This change was to improve memory management by use of MallocedBuffer instead of malloc()/free() calls. I further removed use of structure "ares_soa_reply" by using just local variables which removed 2 additional malloc/free calls via ares_expand_name().