]> git.sur5r.net Git - openldap/commitdiff
Plug leak of datum. Should be freed after use.
authorKurt Zeilenga <kurt@openldap.org>
Wed, 3 Feb 1999 05:00:41 +0000 (05:00 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 3 Feb 1999 05:00:41 +0000 (05:00 +0000)
servers/slapd/tools/ldif2id2children.c

index 17f87a1cc18a7e71816f7379fa8131a4a12a91b9..f15fb5ac32303ad06fb6a7246edd311d8f4d29f7 100644 (file)
@@ -282,6 +282,8 @@ main( int argc, char **argv )
                                                }
                                                (void) memcpy( (char *) &pid,
                                                    data.dptr, sizeof(ID) );
+
+                                               ldbm_datum_free( db->dbc_db, data);
                                        }
 
                                        sprintf( buf2, "%c%ld", EQ_PREFIX, pid );