]> git.sur5r.net Git - openldap/commitdiff
Cleanup config items on destroy
authorHoward Chu <hyc@openldap.org>
Fri, 4 Feb 2011 15:25:42 +0000 (15:25 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 4 Feb 2011 15:25:42 +0000 (15:25 +0000)
servers/slapd/back-perl/close.c

index 24ad366627a390fe7c54e21fec35f7b5dc14234f..893834b760b75b0a3d4a4d8eaece8833c9a780a1 100644 (file)
@@ -46,6 +46,12 @@ perl_back_db_destroy(
        ConfigReply *cr
 )
 {
+       PerlBackend *pb = be->be_private;
+
+       ch_free( pb->pb_module_name.bv_val );
+       ber_bvarray_free( pb->pb_module_path );
+       ber_bvarray_free( pb->pb_module_config );
+
        free( be->be_private );
        be->be_private = NULL;