[ASAN] UPNP url memory leak (#2397)
This commit is contained in:
parent
9b30b399b3
commit
3a2caa9573
1 changed files with 2 additions and 1 deletions
|
|
@ -205,8 +205,8 @@ nano::upnp_state::~upnp_state ()
|
||||||
if (devices)
|
if (devices)
|
||||||
{
|
{
|
||||||
freeUPNPDevlist (devices);
|
freeUPNPDevlist (devices);
|
||||||
devices = nullptr;
|
|
||||||
}
|
}
|
||||||
|
FreeUPNPUrls (&urls);
|
||||||
}
|
}
|
||||||
|
|
||||||
nano::upnp_state & nano::upnp_state::operator= (nano::upnp_state && other_a)
|
nano::upnp_state & nano::upnp_state::operator= (nano::upnp_state && other_a)
|
||||||
|
|
@ -221,6 +221,7 @@ nano::upnp_state & nano::upnp_state::operator= (nano::upnp_state && other_a)
|
||||||
}
|
}
|
||||||
devices = other_a.devices;
|
devices = other_a.devices;
|
||||||
other_a.devices = nullptr;
|
other_a.devices = nullptr;
|
||||||
|
FreeUPNPUrls (&urls);
|
||||||
urls = other_a.urls;
|
urls = other_a.urls;
|
||||||
other_a.urls = { 0 };
|
other_a.urls = { 0 };
|
||||||
data = other_a.data;
|
data = other_a.data;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue