From 224b42352283f03ac3c8e4ffc27d1cd6f17d129c Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 21 Jan 2014 15:10:49 -0500 Subject: [PATCH] fixed incorrect memory access --- TunnelConfig.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TunnelConfig.h b/TunnelConfig.h index 29fb8575..b6eccda4 100644 --- a/TunnelConfig.h +++ b/TunnelConfig.h @@ -115,8 +115,9 @@ namespace tunnel while (hop) { - delete hop; + auto tmp = hop; hop = hop->next; + delete tmp; } }