mirror of
https://github.com/status-im/miniupnp.git
synced 2025-02-01 17:16:28 +00:00
Fixed a minor memory "leak"
The upnppermlist was not free'd before exiting...
This commit is contained in:
parent
9ee74defc8
commit
4e79d6b983
@ -193,5 +193,11 @@ freeoptions(void)
|
||||
ary_options = NULL;
|
||||
num_options = 0;
|
||||
}
|
||||
if(upnppermlist)
|
||||
{
|
||||
free(upnppermlist);
|
||||
upnppermlist = NULL;
|
||||
num_upnpperm = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user