diff options
Diffstat (limited to 'ldap/servers/slapd/back-ldbm')
-rw-r--r-- | ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c b/ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c index f3474fa9..503d96b8 100644 --- a/ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c +++ b/ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c @@ -2560,6 +2560,7 @@ _entryrdn_index_read(backend *be, "_entryrdn_index_read: Failed to generate a new elem: " "dn: %s\n", dn); slapi_ch_free_string(&dn); + slapi_rdn_free(&tmpsrdn); goto bail; } slapi_rdn_free(&tmpsrdn); @@ -2627,6 +2628,9 @@ _entryrdn_index_read(backend *be, "_entryrdn_index_read: Failed to generate a new elem: " "dn: %s\n", dn); slapi_ch_free_string(&dn); + if (tmpsrdn != srdn) { + slapi_rdn_free(&tmpsrdn); + } goto bail; } if (tmpsrdn != srdn) { |