]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/oc.c
Plug mutex/rwlock leaks (destroy them)
[openldap] / servers / slapd / oc.c
index df196cffcfba046bba4de173fa7c2ddb891b31b2..b340bfb474f4bcb748d620e567832bb23db3292d 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2008 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -807,6 +807,10 @@ done:;
                        ch_free( soc->soc_allowed );
                }
 
+               if ( soc->soc_oidmacro ) {
+                       ch_free( soc->soc_oidmacro );
+               }
+
                ch_free( soc );
 
        } else if ( rsoc ) {