mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-22 00:59:08 +01:00
fixed incorrect memory access
This commit is contained in:
parent
dc4cb1fbb3
commit
224b423522
1 changed files with 2 additions and 1 deletions
|
@ -115,8 +115,9 @@ namespace tunnel
|
||||||
|
|
||||||
while (hop)
|
while (hop)
|
||||||
{
|
{
|
||||||
delete hop;
|
auto tmp = hop;
|
||||||
hop = hop->next;
|
hop = hop->next;
|
||||||
|
delete tmp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue