fixed incorrect memory access

This commit is contained in:
orignal 2014-01-21 15:10:49 -05:00
parent dc4cb1fbb3
commit 224b423522

View file

@ -115,8 +115,9 @@ namespace tunnel
while (hop) while (hop)
{ {
delete hop; auto tmp = hop;
hop = hop->next; hop = hop->next;
delete tmp;
} }
} }