Fixed possible memory leak in ipban_func_del() when returning without calling ipban_unload_entry() on variable 'to_delete'

This commit is contained in:
RElesgoe 2016-08-23 23:45:18 -07:00
parent 24041be4de
commit 4c056aab0f

View file

@ -584,6 +584,7 @@ namespace pvpgn
if (!entry)
{
eventlog(eventlog_level_error, __FUNCTION__, "ipbanlist contains NULL item");
ipban_unload_entry(to_delete);
return -1;
}
if (ipban_identical_entry(to_delete, entry))