diff --git a/miniupnpd/options.c b/miniupnpd/options.c index 7b688b8..ef8f465 100644 --- a/miniupnpd/options.c +++ b/miniupnpd/options.c @@ -193,5 +193,11 @@ freeoptions(void) ary_options = NULL; num_options = 0; } + if(upnppermlist) + { + free(upnppermlist); + upnppermlist = NULL; + num_upnpperm = 0; + } }