Sun Java System Directory Server Enterprise Edition 6.0 Developer's Guide

slapi_entry_free()

Frees an entry, its DN, and its attributes from memory.

Syntax

#include "slapi-plugin.h"
 void slapi_entry_free( Slapi_Entry *e );

Parameters

This function takes the following parameter:

e

Entry that you want to free. If NULL, no action occurs.

Description

Call this function to free an entry that you have allocated by using the slapi_entry_alloc() function or the slapi_entry_dup() function.

Memory Concerns

To free entries, always use this function, as opposed to using slapi_ch_free(), or free().

See Also

slapi_entry_alloc()

slapi_entry_dup()