Commit 7372fe4d authored by FaramosCZ's avatar FaramosCZ Committed by Marko Mäkelä

xb_process_datadir(): Fix resource leaks

Closes #983, #984
parent 1d56d875
...@@ -5266,6 +5266,7 @@ xb_process_datadir( ...@@ -5266,6 +5266,7 @@ xb_process_datadir(
path, NULL, path, NULL,
fileinfo.name, data)) fileinfo.name, data))
{ {
os_file_closedir(dbdir);
return(FALSE); return(FALSE);
} }
} }
...@@ -5326,6 +5327,7 @@ xb_process_datadir( ...@@ -5326,6 +5327,7 @@ xb_process_datadir(
dbinfo.name, dbinfo.name,
fileinfo.name, data)) fileinfo.name, data))
{ {
os_file_closedir(dbdir);
return(FALSE); return(FALSE);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment