Re: [Openvpn-devel] [PATCHv2 6/7] argv: do fewer memory re-allocations

2017-11-13 Thread David Sommerseth
On 12/11/17 09:27, Heiko Hund wrote: > Prevent the re-allocations of memory when the internal argv grows > beyond 2 and 4 arguments by initially allocating argv to hold up to > 7 (+ trailing NULL) pointers. > > While at it rename argv_reset to argv_free to actually express > what's going on. Redo

[Openvpn-devel] [PATCHv2 6/7] argv: do fewer memory re-allocations

2017-11-12 Thread Heiko Hund
Prevent the re-allocations of memory when the internal argv grows beyond 2 and 4 arguments by initially allocating argv to hold up to 7 (+ trailing NULL) pointers. While at it rename argv_reset to argv_free to actually express what's going on. Redo the argv_reset functionality so that it can be us