Skip to content

Commit

Permalink
ODBC-389 alloc-dealloc mismatch
Browse files Browse the repository at this point in the history
Connection handle has been changed to be allocated with new, but
deallocation has been remained old free, instead of delete
  • Loading branch information
lawrinn committed Apr 28, 2023
1 parent 7a50276 commit 889c56e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/ma_connection.cpp
Expand Up @@ -560,7 +560,7 @@ SQLRETURN MADB_DbcFree(MADB_Dbc *Connection)
MADB_DSN_Free(Connection->Dsn);
DeleteCriticalSection(&Connection->cs);

free(Connection);
delete Connection;
return SQL_SUCCESS;
}
/* }}} */
Expand Down

0 comments on commit 889c56e

Please sign in to comment.