]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/unbind.c
Add lber_log_print support to libldap.
[openldap] / libraries / libldap / unbind.c
index f46c45adc829ceb1ba959c8f9bf74338fc099899..63237ba8e236a16ec555a228c1bd9fcdca5b4b50 100644 (file)
@@ -1,4 +1,8 @@
 /*
+ * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
+ * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+ */
+/*  Portions
  *  Copyright (c) 1990 Regents of the University of Michigan.
  *  All rights reserved.
  *
@@ -7,10 +11,6 @@
 
 #include "portable.h"
 
-#ifndef lint 
-static char copyright[] = "@(#) Copyright (c) 1990 Regents of the University of Michigan.\nAll rights reserved.\n";
-#endif
-
 #include <stdio.h>
 #include <stdlib.h>
 
@@ -98,8 +98,11 @@ ldap_ld_free( LDAP *ld, int close )
                ldap_free_select_info( ld->ld_selectinfo );
 #endif /* LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS */
 
-       if ( ld->ld_defhost != NULL )
-               free( ld->ld_defhost );
+       if ( ld->ld_options.ldo_defbase != NULL )
+               free( ld->ld_options.ldo_defbase );
+
+       if ( ld->ld_options.ldo_defhost != NULL )
+               free( ld->ld_options.ldo_defhost );
 
        free( (char *) ld );