Skip to content

Commit 7372fe4

Browse files
FaramosCZdr-m
authored andcommitted
xb_process_datadir(): Fix resource leaks
Closes #983, #984
1 parent 1d56d87 commit 7372fe4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

extra/mariabackup/xtrabackup.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5266,6 +5266,7 @@ xb_process_datadir(
52665266
path, NULL,
52675267
fileinfo.name, data))
52685268
{
5269+
os_file_closedir(dbdir);
52695270
return(FALSE);
52705271
}
52715272
}
@@ -5326,6 +5327,7 @@ xb_process_datadir(
53265327
dbinfo.name,
53275328
fileinfo.name, data))
53285329
{
5330+
os_file_closedir(dbdir);
53295331
return(FALSE);
53305332
}
53315333
}

0 commit comments

Comments
 (0)