Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbFreeSession

Release all resources associated with a session

Declaration

void ctdbFreeSession(CTHANDLE Handle)

Description

ctdbFreeSession() releases all resources associated with a session and must be called at application close to free all resources allocated with ctdbAllocSession().

After a call to ctdbFreeSession(), the session handle cannot be used for other operations.

For each ctdbAllocSession() call, there must be ctdbFreeSession().

  • Handle [in] the session handle.

Returns

None.

Example


CTSESSION_TYPE ctdbsess=CTSESSION_CTDB;

CTHANDLE handle = ctdbAllocSession(ctdbsess);

ctdbCreateSession(handle, "FAIRCOMS", "ADMIN", "ADMIN");

ctdbFreeSession(handle);

See also

ctdbAllocSession(), ctdbFreeDatabase()

TOCIndex