]> 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:24:23 +0000 (09:24 +0200)
commit64933bf444fd83a6f04a1a13f0b2a67caa43a2cb
treed00c5b2c18c9770ea4e3a0403dfdd4abb2441116
parenta95927638f8ee5e14e7ac8845b20c5350cefc9b8
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>
(cherry picked from commit d89e14d92623731d2fa6343a11072caab32e13cd)
src/openvpn/options.c