]> git.sur5r.net Git - openldap/blobdiff - clients/tools/ldapmodify.c
Import back-mdb
[openldap] / clients / tools / ldapmodify.c
index 55330715184947317af17a153a5aba5adc982c51..70d231926590d350e43cc5aa09fa4250c44a2214 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2010 The OpenLDAP Foundation.
+ * Copyright 1998-2011 The OpenLDAP Foundation.
  * Portions Copyright 2006 Howard Chu.
  * Portions Copyright 1998-2003 Kurt D. Zeilenga.
  * Portions Copyright 1998-2001 Net Boolean Incorporated.
@@ -714,7 +714,7 @@ static int process_response(
 
        if ( text ) ldap_memfree( text );
        if ( matched ) ldap_memfree( matched );
-       if ( text ) ber_memvfree( (void **)refs );
+       if ( refs ) ber_memvfree( (void **)refs );
 
        if ( ctrls ) {
                tool_print_ctrls( ld, ctrls );