]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/tmplout.c
Don't provide ldap.OpenLDAP.org and dc=OpenLDAP, dc=Org as the defaults.
[openldap] / libraries / libldap / tmplout.c
index 291ec3a785d5e83bec01c8b150d0d824c0fc4d76..9e5f9af0fb10d6385fa681f4bb866fc7ae1dcfc0 100644 (file)
@@ -265,6 +265,10 @@ do_entry2text(
                ldap_value_free( vals );
            }
        }
+
+       if( ber != NULL) {
+               ber_free( ber, 0 );
+       }
     } else {
        for ( rowp = ldap_first_tmplrow( tmpl );
                NONFATAL_LDAP_ERR( err ) && rowp != NULLTMPLITEM;