mirror of
https://github.com/status-im/miniupnp.git
synced 2025-01-18 18:31:15 +00:00
shutdown_iptpinhole() frees memory
This commit is contained in:
parent
6f8951d40d
commit
f1ce2301da
@ -51,7 +51,12 @@ void init_iptpinhole(void)
|
||||
|
||||
void shutdown_iptpinhole(void)
|
||||
{
|
||||
/* TODO empty list */
|
||||
struct pinhole_t * p;
|
||||
while(pinhole_list.lh_first != NULL) {
|
||||
p = pinhole_list.lh_first;
|
||||
LIST_REMOVE(p, entries);
|
||||
free(p);
|
||||
}
|
||||
}
|
||||
|
||||
/* return uid */
|
||||
|
Loading…
x
Reference in New Issue
Block a user