]> 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:29:54 +0000 (10:29 +0200)
commit8fcfe1d449a64e1ce61e361dc593ff52293b41f2
tree52666f94bde242112089e10f785d6083dd4545bd
parent0c6323cd07364b6b3be5bd0d12b18554a073a079
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>
(cherry picked from commit 7170bef507bfe74ceb4a12f8f10df4d2d6ad39c9)
src/openvpn/openvpn.c