sno_whois: fix resource leak, pointed out by mniip

This commit is contained in:
William Pitcock 2015-12-27 17:08:57 -06:00
parent 0b904d91bf
commit 340b2512d4

View file

@ -37,7 +37,7 @@ init(void)
static void static void
fini(void) fini(void)
{ {
snomask_modes['W'] = find_snomask_slot(); snomask_modes['W'] = 0;
} }
DECLARE_MODULE_AV1(sno_whois, init, fini, NULL, NULL, whois_hfnlist, "$Revision: 3498 $"); DECLARE_MODULE_AV1(sno_whois, init, fini, NULL, NULL, whois_hfnlist, "$Revision: 3498 $");