diff options
Diffstat (limited to 'src/interfaces/odbc/statement.c')
-rw-r--r-- | src/interfaces/odbc/statement.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/interfaces/odbc/statement.c b/src/interfaces/odbc/statement.c index b4e33d05923..b2798506785 100644 --- a/src/interfaces/odbc/statement.c +++ b/src/interfaces/odbc/statement.c @@ -320,7 +320,15 @@ SC_Destructor(StatementClass *self) */ /* about that here. */ if (self->bindings) + { + int lf; + for (lf = 0; lf < self->bindings_allocated; lf++) + { + if (self->bindings[lf].ttlbuf != NULL) + free(self->bindings[lf].ttlbuf); + } free(self->bindings); + } /* Free the parsed table information */ if (self->ti) |