]> git.sur5r.net Git - openldap/commitdiff
Plug ndn leak (re: ITS#2390)
authorHoward Chu <hyc@openldap.org>
Sat, 22 Mar 2003 16:59:41 +0000 (16:59 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 22 Mar 2003 16:59:41 +0000 (16:59 +0000)
servers/slapd/back-bdb/passwd.c

index 917659555cc51e4f00f7e892d258b5ec3fc104bc..8dff5ef09e10667549986b6f881f2a4d602b2b37 100644 (file)
@@ -280,6 +280,10 @@ done:
                free( hash.bv_val );
        }
 
+       if( ndn.bv_val != NULL ) {
+               free( ndn.bv_val );
+       }
+
        if( ltid != NULL ) {
                TXN_ABORT( ltid );
                op->o_private = NULL;