Good catch, and the resulting code is easier to read anyway :-) - haven't
seen if I can actually trigger it.

As it's in the (unlikely) error path, and it's just a mem leak, keeping
this to master.  Not tested, just stared at the code a bit (and BB all green).

Your patch has been applied to the master branch.

commit 4a6bd5f532195ca89550c3e930576734ac7ff486
Author: Razvan Cojocaru
Date:   Tue Nov 3 13:18:58 2026 +0100

     console_systemd: free argv when openvpn_popen() fails

     Signed-off-by: Razvan Cojocaru <[email protected]>
     Acked-by: Frank Lichtenheld <[email protected]>
     Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2097
     Message-Id: <[email protected]>
     URL: 
https://www.mail-archive.com/[email protected]/msg40566.html
     Signed-off-by: Gert Doering <[email protected]>


--
kind regards,

Gert Doering



_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to