summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorFaramosCZ <mschorm@centrum.cz>2018-12-03 12:59:45 +0100
committerMarko Mäkelä <marko.makela@mariadb.com>2019-01-14 11:02:04 +0200
commit7372fe4da195f465a2f13984dcd89325ec361c43 (patch)
treed6ea538658c37c86392a79390cfab97b79f1a435 /extra
parent1d56d875fe28f34cefc1bb4e162331ae9f4ce9bb (diff)
downloadmariadb-git-7372fe4da195f465a2f13984dcd89325ec361c43.tar.gz
xb_process_datadir(): Fix resource leaks
Closes #983, #984
Diffstat (limited to 'extra')
-rw-r--r--extra/mariabackup/xtrabackup.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/extra/mariabackup/xtrabackup.cc b/extra/mariabackup/xtrabackup.cc
index 5edfb8b31f3..ef75797d1a4 100644
--- a/extra/mariabackup/xtrabackup.cc
+++ b/extra/mariabackup/xtrabackup.cc
@@ -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);
}
}