]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/free.c
Fix ldap_send_initial_request() to open connection if not already
[openldap] / libraries / libldap / free.c
index ebf2d623c5709b4321018c748883ecdd2e6e0df3..cfccba3e53851b53154fb4e36e1e454aca9d21cb 100644 (file)
@@ -1,4 +1,8 @@
 /*
+ * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
+ * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+ */
+/*  Portions
  *  Copyright (c) 1994 The Regents of the University of Michigan.
  *  All rights reserved.
  *
@@ -8,10 +12,6 @@
 
 #include "portable.h"
 
-#ifndef lint 
-static char copyright[] = "@(#) Copyright (c) 1994 The Regents of the University of Michigan.\nAll rights reserved.\n";
-#endif
-
 #include <stdio.h>
 #include <stdlib.h>
 
@@ -21,6 +21,17 @@ static char copyright[] = "@(#) Copyright (c) 1994 The Regents of the University
 
 #include "ldap-int.h"
 
+/*
+ * C-API deallocator
+ */
+void
+ldap_memfree( void *p )
+{
+       if(p != NULL) {
+               free( p );
+       }
+}
+
 void
 ldap_getfilter_free( LDAPFiltDesc *lfdp )
 {