Frees a login record.
void dbfreelogin ( PLOGINREC login );
where
This function frees the memory allocated by the dblogin function. It can be called immediately after a call to dbopen; however, you can use the same login record for multiple calls to dbopen. Call dbfreelogin when you are completely finished with the login record.
The following example shows how to use dbfreelogin:
DBPROCESS *dbproc; LOGINREC *loginrec; loginrec = dblogin(); DBSETLUSER(login, "user"); DBSETLPWD(loginrec, "my_password"); DBSETLAPP(loginrec, "my_program"); dbproc = dbopen(loginrec, "my_server"); dbfreelogin (loginrec);