]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix memory leak after sighup
authorSteffan Karger <steffan.karger@fox-it.com>
Wed, 29 Aug 2018 13:49:43 +0000 (15:49 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 3 Sep 2018 08:28:19 +0000 (10:28 +0200)
commit7170bef507bfe74ceb4a12f8f10df4d2d6ad39c9
treee27f937e80431d4b7e9c1d06b6520d5e7af98dd7
parentdd1da0e485a3d161feb5230b6aa57df11ea72705
Fix memory leak after sighup

The c.es env_set is (re)allocated for each "sighup loop iteration", while
it was free'd only once at process shutdown.  Move the env_set_destroy()
call to match the same level as the env_set_create() call to fix that.

Signed-off-by: Steffan Karger <steffan.karger@fox-it.com>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <1535550583-21825-1-git-send-email-steffan.karger@fox-it.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg17429.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/openvpn.c