---
name: "cldap_close"
section: "3"
platform: "linux"
package: "libopenldap-dev"
version: "1:1.2.12-1"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/cldap_close"
---

# cldap\_close(3)

Dispose of Connectionless LDAP Pointer

## NAME

cldap\_close - Dispose of Connectionless LDAP Pointer

## SYNOPSIS

```
#include <lber.h>
#include <ldap.h>
```

**void cldap\_close( ld )** **LDAP \*ld;**

## DESCRIPTION

**The** **cldap\_close()** **routine disposes of memory allocated by** [**cldap\_open**(3)](/cldap_open/3.md). **It should be called when all CLDAP communication is complete.**

**cldap\_close()** **takes a single parameter** *ld***, the LDAP pointer** **returned by a previous call to** [**cldap\_open**(3)](/cldap_open/3.md).

## SEE ALSO

[**ldap**(3)](/ldap/3.md), [**cldap\_open**(3)](/cldap_open/3.md), [**cldap\_search\_s**(3)](/cldap_search_s/3.md), [**cldap\_setretryinfo**(3)](/cldap_setretryinfo/3.md)

## ACKNOWLEDGEMENTS

**OpenLDAP** **is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).** **OpenLDAP** **is derived from University of Michigan LDAP 3.3 Release.**
