/*
**    Name: freeb.c
**
**    Date: Thu Jan 17 12:02:13 2002
**
*/

#include "ODBC.h"
#include "rmamem.h"

void free_bound_parameters(int stmt)
    {
    int index;

    for (index = 0;index < ODBCLIBMAXBOUNDPARAMETERS;index++)
        {
        if (odbcquerytype.boundparameters[index].stmt == stmt)
            {
            if (odbcquerytype.boundparameters[index].rmadata != 0)
                {
                rmafree((void *)odbcquerytype.boundparameters[index].rmadata);
                odbcquerytype.boundparameters[index].rmadata = 0;
                }

            odbcquerytype.boundparameters[index].data    = 0;
            odbcquerytype.boundparameters[index].stmt    = 0;
            odbcquerytype.boundparameters[index].size    = 0;
            }
        }
    }
