Share this page

# 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).
miDBErrorSeverity | The 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.

Copy code

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

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: