From 4e79d6b983b23fe0f494e4fb3c1e1fcc3a84ce8d Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sun, 5 Feb 2012 00:53:29 +0100 Subject: [PATCH] Fixed a minor memory "leak" The upnppermlist was not free'd before exiting... --- miniupnpd/options.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; + } }