--- servers/slapd/slaptest.c 2008/02/11 23:26:44 1.7.2.4 +++ servers/slapd/slaptest.c 2008/11/10 22:20:05 1.7.2.5 @@ -1,3 +1,4 @@ +/* $OpenLDAP: pkg/ldap/servers/slapd/slapcat.c,v 1.13 2008/11/03 12:23:05 hyc Exp $ */ /* This work is part of OpenLDAP Software . * * Copyright 2004-2008 The OpenLDAP Foundation. @@ -108,7 +109,8 @@ slaptest( int argc, char **argv ) fprintf( stderr, "config file testing succeeded\n"); } - slap_tool_destroy(); + if ( slap_tool_destroy()) + rc = EXIT_FAILURE; return rc; }