more cleanup from jon@symas.com

This commit is contained in:
Howard Chu 2001-12-18 04:52:55 +00:00
parent 7c8c5213b1
commit 773b3aff16
5 changed files with 12 additions and 3 deletions

View File

@ -47,7 +47,7 @@
#endif
#include <ldap.h>
#include "lutil.h"
#include "ldap_defaults.h"
#include "ud.h"

View File

@ -9,6 +9,9 @@
#include <ac/stdlib.h>
#include <ac/string.h>
#include <ac/unistd.h>
#ifdef HAVE_IO_H
#include <io.h>
#endif
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif

View File

@ -170,8 +170,12 @@ int bdb_entry_release(
Entry *e,
int rw )
{
int retval = 0;
if (o && o->o_tag == LDAP_REQ_ADD)
entry_free(e);
else
return bdb_entry_return( be, e );
retval = bdb_entry_return( be, e );
return retval;
}

View File

@ -9,6 +9,8 @@
#include <stdio.h>
#include <ac/string.h>
#include <ac/unistd.h>
#include <ac/stdlib.h>
#include "back-bdb.h"
#include "external.h"

View File

@ -365,7 +365,7 @@ long connection_init(
#else
{
unsigned int i;
ber_socket_t i;
c = NULL;