24.31. slapi_entry_free()

Frees an entry, its DN, and its attributes from memory.
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.

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.
Memory Concerns

To free entries, always use this function instead of using slapi_ch_free() or free().