3 * Copyright 1999, John C. Quillan, All rights reserved.
5 * Redistribution and use in source and binary forms are permitted only
6 * as authorized by the OpenLDAP Public License. A copy of this
7 * license is available at http://www.OpenLDAP.org/license.html or
8 * in file LICENSE in the top-level directory of the distribution.
12 /* init.c - initialize shell backend */
15 /* #include <ac/types.h>
16 #include <ac/socket.h>
23 #include "perl_back.h"
25 /**********************************************************
29 **********************************************************/
36 ldap_pvt_thread_mutex_lock( &perl_interpreter_mutex );
38 perl_destruct(perl_interpreter);
40 ldap_pvt_thread_mutex_unlock( &perl_interpreter_mutex );
50 perl_free(perl_interpreter);
51 perl_interpreter = NULL;
53 ldap_pvt_thread_mutex_destroy( &perl_interpreter_mutex );
63 free( be->be_private );
64 be->be_private = NULL;