]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/slaptest.c
Additional fix for ITS#4522. The "dn=" ist not optional.
[openldap] / servers / slapd / slaptest.c
index 85f08edc073efe7f7c0bd05caee9290feeee73ff..a1c6baba0f7b43ce7dac97ab215916ead8536f96 100644 (file)
@@ -1,6 +1,6 @@
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2004-2005 The OpenLDAP Foundation.
+ * Copyright 2004-2006 The OpenLDAP Foundation.
  * Portions Copyright 2004 Pierangelo Masarati.
  * All rights reserved.
  *
@@ -69,6 +69,7 @@ test_file( const char *fname, const char *ftype )
 
                                return -1;
                        }
+                       fclose( fp );
                        unlink( fname );
                        break;
                }