]> git.sur5r.net Git - openldap/commitdiff
plug leaks
authorHoward Chu <hyc@openldap.org>
Tue, 4 Apr 2006 10:58:08 +0000 (10:58 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 4 Apr 2006 10:58:08 +0000 (10:58 +0000)
servers/slapd/overlays/lastmod.c
servers/slapd/overlays/retcode.c

index fb5bda9651e851200807c1c32b22b72fb7750464..f669709fc25fa8f2602d14399a35737f6e1b56d3 100644 (file)
@@ -767,6 +767,7 @@ lastmod_db_init(
                                Debug( LDAP_DEBUG_ANY, "lastmod_init: "
                                        "null OID for attributeType '%s'\n",
                                        mat[i].name, 0, 0 );
+                               ldap_attributetype_free( at );
                                return -1;
                        }
        
@@ -775,6 +776,7 @@ lastmod_db_init(
                                Debug( LDAP_DEBUG_ANY, "lastmod_init: "
                                        "%s in attributeType '%s'\n",
                                        scherr2str(code), mat[i].name, 0 );
+                               ldap_attributetype_free( at );
                                return -1;
                        }
                        ldap_memfree(at);
@@ -810,6 +812,7 @@ lastmod_db_init(
                                Debug( LDAP_DEBUG_ANY,
                                        "objectClass '%s' has no OID\n" ,
                                        moc[i].name, 0, 0 );
+                               ldap_objectclass_free( oc );
                                return -1;
                        }
 
@@ -818,6 +821,7 @@ lastmod_db_init(
                                Debug( LDAP_DEBUG_ANY,
                                        "objectClass '%s': %s \"%s\"\n" ,
                                        moc[i].name, scherr2str(code), err );
+                               ldap_objectclass_free( oc );
                                return -1;
                        }
        
index 8b09f733613228d0a4047a771ba4bd4003fe8415..44a1b709c0d4999fa8c8731c45440f52039c0dd3 100644 (file)
@@ -788,6 +788,7 @@ retcode_db_config(
                                                } else {
                                                        fprintf( stderr, "retcode: unknown op \"%s\"\n",
                                                                ops[ j ] );
+                                                       ldap_charray_free( ops );
                                                        return 1;
                                                }
                                        }