openldap/servers/slapd/back-perl/close.c

54 lines
1.1 KiB
C
Raw Normal View History

/* $OpenLDAP$ */
2003-12-06 14:25:01 -05:00
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
2009-01-21 19:40:04 -05:00
* Copyright 1999-2009 The OpenLDAP Foundation.
2003-12-06 14:25:01 -05:00
* Portions Copyright 1999 John C. Quillan.
* Portions Copyright 2002 myinternet Limited.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted only as authorized by the OpenLDAP
* Public License.
*
2003-12-06 14:25:01 -05:00
* A copy of this license is available in file LICENSE in the
* top-level directory of the distribution or, alternatively, at
* <http://www.OpenLDAP.org/license.html>.
*/
#include "perl_back.h"
2007-08-31 20:28:07 -04:00
#include "../config.h"
/**********************************************************
*
* Close
*
**********************************************************/
int
perl_back_close(
BackendInfo *bd
)
{
2002-04-16 00:25:44 -04:00
perl_destruct(PERL_INTERPRETER);
perl_free(PERL_INTERPRETER);
PERL_INTERPRETER = NULL;
2009-06-23 19:12:15 -04:00
#ifdef PERL_SYS_TERM
PERL_SYS_TERM();
#endif
ldap_pvt_thread_mutex_destroy( &perl_interpreter_mutex );
return 0;
}
int
perl_back_db_destroy(
BackendDB *be,
ConfigReply *cr
)
{
free( be->be_private );
be->be_private = NULL;
2002-04-15 23:51:51 -04:00
return 0;
}