This is an automated email from the git hooks/post-receive script.
mhonek pushed a commit to branch 389-ds-base-1.3.9
in repository 389-ds-base.
commit af724fb0f9363d5f1be927c88ad1b34bc6e89277
Author: William Brown <firstyear(a)redhat.com>
AuthorDate: Tue Dec 19 16:10:44 2017 +0100
Ticket 49508 - memory leak in cn=replica plugin setup
Bug Description: during db2ldif a memory leak in cn=replica
mt node setup was found.
Fix Description: Free the memory!
https://pagure.io/389-ds-base/issue/49508
Author: wibrown
Review by: mreynolds (Thank you!)
(cherry picked from commit 3aa02b6981802dc6bacdd951bccc24ce55868c07)
---
ldap/servers/plugins/replication/repl5_replica.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ldap/servers/plugins/replication/repl5_replica.c
b/ldap/servers/plugins/replication/repl5_replica.c
index 41cad3b..4e7d618 100644
--- a/ldap/servers/plugins/replication/repl5_replica.c
+++ b/ldap/servers/plugins/replication/repl5_replica.c
@@ -1964,9 +1964,11 @@ _replica_init_from_config(Replica *r, Slapi_Entry *e, char
*errortext)
int64_t rflags;
if((val = slapi_entry_attr_get_charptr(e, attr_flags))) {
if (repl_config_valid_num(attr_flags, val, 0, 1, &rc, errortext,
&rflags) != 0) {
+ slapi_ch_free_string(&val);
return -1;
}
r->repl_flags = (uint32_t)rflags;
+ slapi_ch_free_string(&val);
} else {
r->repl_flags = 0;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.