diff options
author | Richard Knight <q@1bpm.net> | 2022-08-25 18:14:53 +0100 |
---|---|---|
committer | Richard Knight <q@1bpm.net> | 2022-08-25 18:14:53 +0100 |
commit | 9ac4dfb0f0ba5be3f21bd3904c99ba67543b1833 (patch) | |
tree | eda9aabe89979289d61f8ef40f605f18a3223438 /src/connection.cpp | |
parent | db5bc3227bf89c0eaf2f2498cf0f1a80cf5eead0 (diff) | |
download | csound-sqldb-9ac4dfb0f0ba5be3f21bd3904c99ba67543b1833.tar.gz csound-sqldb-9ac4dfb0f0ba5be3f21bd3904c99ba67543b1833.tar.bz2 csound-sqldb-9ac4dfb0f0ba5be3f21bd3904c99ba67543b1833.zip |
fixed string and array memory leaks
Diffstat (limited to 'src/connection.cpp')
-rw-r--r-- | src/connection.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/connection.cpp b/src/connection.cpp index 6ad929f..43175bd 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -136,7 +136,7 @@ MYFLT ConnectionData::Scalar(char* sql, int row, int col) { } -char* ConnectionData::ScalarString(char* sql, int row, int col) { +char* ConnectionData::ScalarString(char* sql, csnd::Csound* csound, int row, int col) { if (!open) { throw std::runtime_error(badConnection); } @@ -144,17 +144,17 @@ char* ConnectionData::ScalarString(char* sql, int row, int col) { switch (type) { #ifdef BUILD_POSTGRES case POSTGRES: - return postgres->ScalarString(sql, row, col); + return postgres->ScalarString(sql, csound, row, col); break; #endif #ifdef BUILD_SQLITE case SQLITE: - return sqlite->ScalarString(sql, row, col); + return sqlite->ScalarString(sql, csound, row, col); break; #endif #ifdef BUILD_MYSQL case MYSQL: - return mysql->ScalarString(sql, row, col); + return mysql->ScalarString(sql, csound, row, col); break; #endif default: |