lrd_free_connection

Frees a connection structure.

LRDRET lrd_free_connection( LRD_CONNECTION **mpptConnection, long mliOption, int miDBErrorSeverity );

mpptConnection A pointer to a pointer to an LRD_CONNECTION structure.
mliOption One of the Free Connection options ( Currently NULL).
miDBErrorSeverityThe Error Severity Levels of a failure in a database routine.

The lrd_free_connection frees an LRD_CONNECTION structure created by lrd_alloc_connection.

For more details refer to the Function Header File lrd.h in the include directory.

Return Values

See LRD Return Values.

Parameterization

You cannot use standard parameterization for any arguments in this function.

Example

In the following example, lrd_free_connection frees the allocated connection, Con1, after closing the connection with lrd_close_connection.

lrd_close_connection( &Con1, 0, 0);
lrd_free_connection( &Con1, 0 /*Unused*/, 0 );
lrd_close_context( &Ctx1, 0, 0);
lrd_end(0);