xb_process_datadir(): Fix resource leaks

Closes #983, #984
This commit is contained in:
FaramosCZ 2018-12-03 12:59:45 +01:00 committed by Marko Mäkelä
parent 1d56d875fe
commit 7372fe4da1

View file

@ -5266,6 +5266,7 @@ xb_process_datadir(
path, NULL,
fileinfo.name, data))
{
os_file_closedir(dbdir);
return(FALSE);
}
}
@ -5326,6 +5327,7 @@ next_file_item_1:
dbinfo.name,
fileinfo.name, data))
{
os_file_closedir(dbdir);
return(FALSE);
}
}