mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-13 04:46:38 +01:00
fixed memory leak
This commit is contained in:
parent
8aaaf26a9e
commit
2e0e6fc6c4
1 changed files with 4 additions and 0 deletions
|
@ -245,7 +245,10 @@ namespace i2p
|
||||||
if (s)
|
if (s)
|
||||||
s->SendI2NPMessage (msg);
|
s->SendI2NPMessage (msg);
|
||||||
else
|
else
|
||||||
|
{
|
||||||
LogPrint ("No NTCP and SSU addresses available");
|
LogPrint ("No NTCP and SSU addresses available");
|
||||||
|
DeleteI2NPMessage (msg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -253,6 +256,7 @@ namespace i2p
|
||||||
{
|
{
|
||||||
LogPrint ("Router not found. Requested");
|
LogPrint ("Router not found. Requested");
|
||||||
i2p::data::netdb.RequestDestination (ident);
|
i2p::data::netdb.RequestDestination (ident);
|
||||||
|
DeleteI2NPMessage (msg); // TODO: implement a placeholder for router and send once it's available
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue