24.8. slapi_entry_alloc()

Allocates memory for a new entry of the Section 14.22, “Slapi_Entry” data type.
Description

This function returns an empty Slapi_Entry structure. You can call other frontend functions to set the DN and attributes of this entry.

Syntax

#include "slapi-plugin.h"
Slapi_Entry *slapi_entry_alloc();

Returns

This function returns a pointer to the newly allocated entry of the data type Slapi_Entry. If space cannot be allocated, e.g., no more virtual memory exists, the slapd program terminates.

When you are no longer using the entry, you should free it from memory by calling the slapi_entry_free() function.
Memory Concerns

When you no longer use the entry, free it from memory by calling the slapi_entry_free() function.