]> git.sur5r.net Git - openldap/blobdiff - clients/tools/ldapmodify.c
Plug memory leaks
[openldap] / clients / tools / ldapmodify.c
index 55330715184947317af17a153a5aba5adc982c51..c1f2ff001785e7a0cdf856d263f0791e7df41776 100644 (file)
@@ -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 );