From 9ac4dfb0f0ba5be3f21bd3904c99ba67543b1833 Mon Sep 17 00:00:00 2001 From: Richard Knight Date: Thu, 25 Aug 2022 18:14:53 +0100 Subject: fixed string and array memory leaks --- include/postgresql.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/postgresql.h') diff --git a/include/postgresql.h b/include/postgresql.h index 5209057..eaf01c8 100644 --- a/include/postgresql.h +++ b/include/postgresql.h @@ -19,8 +19,8 @@ */ -#ifndef POSTGRESQL_H -#define POSTGRESQL_H +#ifndef CSSQLDB_POSTGRESQL_H +#define CSSQLDB_POSTGRESQL_H #include #include "libpq-fe.h" @@ -33,7 +33,7 @@ struct PostgresConnection { void Exec(char* sql); PGresult* Query(char *sql); MYFLT Scalar(char* sql, int row, int col); - char* ScalarString(char* sql, int row, int col); + char* ScalarString(char* sql, csnd::Csound* csound, int row, int col); void ToArray(PGresult* result, csnd::Csound* csound, ARRAYDAT* array, bool asString); void ArrayQuery(char* sql, csnd::Csound* csound, ARRAYDAT* array); void ArrayQueryString(char* sql, csnd::Csound* csound, ARRAYDAT* array); -- cgit v1.2.3