Attention is currently required from: Arne Schwabe.

Gert Doering has posted comments on this change by Arne Schwabe. ( 
https://gerrit.openvpn.net/c/openvpn/+/2105?usp=email )

Change subject: Move gc from openvpn_net_ctx_t to local variables
......................................................................


Patch Set 1: Code-Review-1

(2 comments)

Patchset:

PS1:
I think we should just get rid of the `gc_arena()` here.  It's just more 
expensive for a single string to be malloc() per function.


File src/openvpn/networking_iproute2.c:

https://gerrit.openvpn.net/c/openvpn/+/2105/comment/6b3e6e3f_06be757e?usp=email 
:
PS1, Line 367:     struct gc_arena gc = gc_new();
technically we can just go without a `gc_arena()` in all these places - 
`print_in6_addr()` uses `gc_malloc()` which will fall back to regular 
`malloc()` if fed `NULL`.  So we just need to add a `free(dst_str)` at the 
end...



--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2105?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I494a427924ea501382275ea96ef85a6abcd780e5
Gerrit-Change-Number: 2105
Gerrit-PatchSet: 1
Gerrit-Owner: Arne Schwabe <[email protected]>
Gerrit-Reviewer: Antonio Quartulli <[email protected]>
Gerrit-Reviewer: Gert Doering <[email protected]>
Gerrit-Reviewer: Răzvan Cojocaru <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
Gerrit-Comment-Date: Thu, 05 Nov 2026 19:53:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to