Fixed possible memory leak in ipban_func_del() when returning without calling ipban_unload_entry() on variable 'to_delete'
This commit is contained in:
parent
24041be4de
commit
4c056aab0f
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue