]> git.ipfire.org Git - thirdparty/openvpn.git/commit
tun: ensure gc and argv are properly handled
authorAntonio Quartulli <antonio@openvpn.net>
Wed, 13 Jun 2018 12:28:22 +0000 (20:28 +0800)
committerGert Doering <gert@greenie.muc.de>
Wed, 13 Jun 2018 12:35:15 +0000 (14:35 +0200)
commit18225f0fd5c45164308d4d66db055a1ad3960887
tree52c9db69343841b6b8c0252aaf3ae9083ac2bd73
parent62b1cc161c53d900b6fe56f6924ef2ec1c1b8a00
tun: ensure gc and argv are properly handled

Everytime a argv object is initialized with argv_new(), it has
to be released with argv_reset() once not needed anymore.

Ensure this kind of objects are always properly released to avoid
memory leaks.

At the same time, remove those gc_arena objects that are initialized
but never used/released.

Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20180613122824.4207-2-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg17044.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/tun.c