Re: [Dnsmasq-discuss] [PATCH] Introduce whine_realloc

2022-08-12 Thread Simon Kelley
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 ju

[Dnsmasq-discuss] [PATCH] Introduce whine_realloc

2022-07-18 Thread Petr Menšík
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 enou