]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix memory leak in add_option() for option 'connection'
authorGuido Vranken <guidovranken@gmail.com>
Thu, 8 Jun 2017 22:04:36 +0000 (00:04 +0200)
committerGert Doering <gert@greenie.muc.de>
Sat, 10 Jun 2017 07:19:04 +0000 (09:19 +0200)
commitd89e14d92623731d2fa6343a11072caab32e13cd
tree17121cc10be47d02c27a31d939b5c0eaa3902f6e
parent8d606cd3f6bce304874b1d7745d40d11f64ea17d
Fix memory leak in add_option() for option 'connection'

This patch ensures that if an error occurs while processing
the 'connection' directive of an options specification,
the variable 'struct options sub', which is initialized
with init_options(), is properly freed with uninit_options().

Signed-off-by: Guido Vranken <guidovranken@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <CAO5O-E+HdfHNAK=--55054AB374U-Ky4q_-3M114makfPdSnBw@mail.gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg14764.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/options.c