This is an automated email from the git hooks/post-receive script.
mreynolds pushed a commit to branch 389-ds-base-1.4.2
in repository 389-ds-base.
The following commit(s) were added to refs/heads/389-ds-base-1.4.2 by this push:
new b747be0 Issue 50599 - Fix memory leak when removing db region files
b747be0 is described below
commit b747be067caf79615ecf5fa62dae2fc58be4e5cd
Author: Mark Reynolds <mreynolds(a)redhat.com>
AuthorDate: Thu Jan 16 15:11:34 2020 -0500
Issue 50599 - Fix memory leak when removing db region files
Description: An unnecessary flag was set in glob() that was resulting
in a memory leak in the DS code. Removing this flag
eliminated the leak.
relates:
https://pagure.io/389-ds-base/issue/50599
Reviewed by:
---
ldap/servers/slapd/back-ldbm/db-bdb/bdb_layer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ldap/servers/slapd/back-ldbm/db-bdb/bdb_layer.c
b/ldap/servers/slapd/back-ldbm/db-bdb/bdb_layer.c
index a929c88..1678529 100644
--- a/ldap/servers/slapd/back-ldbm/db-bdb/bdb_layer.c
+++ b/ldap/servers/slapd/back-ldbm/db-bdb/bdb_layer.c
@@ -1072,7 +1072,7 @@ bdb_start(struct ldbminfo *li, int dbmode)
/* Better wipe out the region files to help ensure a clean start */
PR_snprintf(file_pattern, MAXPATHLEN, "%s/%s", region_dir,
"__db.*");
- if (glob(file_pattern, GLOB_DOOFFS, NULL, &globbuf) == 0) {
+ if (glob(file_pattern, 0, NULL, &globbuf) == 0) {
for (size_t i = 0; i < globbuf.gl_pathc; i++) {
remove(globbuf.gl_pathv[i]);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.