Patch applied, and a subsequent one to simplify  poll.c that it suggested.

Simon.


On 18/07/2022 16:47, Petr Menšík wrote:
Hi,

After reading the code creating servers.bind reply, I made a change to use realloc call instead. It should allow saving some memory copying when it is possible to just extend allocated memory size. I have replaced  few other uses as well. It is not yet tested much, but should be safe enough.

It might also slightly improve performance handling sockets, because it reduces copying done on socket listener adding.

Just improvement without adding any other feature.

Cheers,

Petr


_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

Reply via email to