]> git.sur5r.net Git - openldap/commitdiff
cleanup
authorHoward Chu <hyc@openldap.org>
Fri, 31 Mar 2006 13:09:42 +0000 (13:09 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 31 Mar 2006 13:09:42 +0000 (13:09 +0000)
clients/tools/ldapsearch.c
clients/tools/ldapwhoami.c

index 7eda37d8d9e00e50419a84bc8c6d909f5ef0c475..a85e741190c2f64712478f3f6421a7124bfebe91 100644 (file)
@@ -1070,6 +1070,9 @@ static int dosearch(
        }
 
        if ( dont ) {
+               if ( filtpatt != NULL ) {
+                       free( filter );
+               }
                return LDAP_SUCCESS;
        }
 
index 7f27817be31e981c257492e51474f5a670c45771..17d48b28e3981ac4abd6dd5867afc192778a3959 100644 (file)
@@ -116,7 +116,7 @@ main( int argc, char *argv[] )
        char            *matcheddn = NULL, *text = NULL, **refs = NULL;
        char            *retoid = NULL;
        struct berval   *retdata = NULL;
-       int             id, code;
+       int             id, code = 0;
        LDAPMessage     *res;
 
        tool_init( TOOL_WHOAMI );