- Added patch by Gavin Scott <gavin@planetacetech.com> for Intel 64bit hardware.
- Added patch by Philip Yarra <philip.yarra@internode.on.net> for a
bug in thread support.
+
+Thu Jun 2 14:22:32 CEST 2005
+
+ - Fixed memory leak in ecpglib by adding some missing free() commands.
+ - Added patch by Gavin Scott <gavin@planetacetech.com> for Intel 64bit
+ hardware.
- Set ecpg library version to 5.1.
- Set ecpg version to 4.1.1.
-/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.39 2005/03/18 10:00:43 meskes Exp $ */
+/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.40 2005/06/02 12:35:11 meskes Exp $ */
/*
* The aim is to get a simpler inteface to the database routines.
res[ri++] = '\'';
res[ri] = '\0';
+ ECPGfree(arg);
return res;
}
-#if defined(__GNUC__) && (defined (__powerpc__) || defined(__AMD64__))
+#if defined(__GNUC__) && (defined (__powerpc__) || defined(__AMD64__) || defined(__x86_64__))
#define APREF ap
#else
#define APREF *ap
if (!(var = (struct variable *) ECPGalloc(sizeof(struct variable), lineno)))
return false;
-#if defined(__GNUC__) && (defined (__powerpc__) || defined(__AMD64__))
+#if defined(__GNUC__) && (defined (__powerpc__) || defined(__AMD64__) || defined(__x86_64__))
ECPGget_variable(ap, type, var, true);
#else
ECPGget_variable(&ap, type, var, true);
if (!mallocedval)
return false;
- ECPGfree(newcopy);
-
*tobeinserted_p = mallocedval;
*malloced_p = true;
}
if (!mallocedval)
return false;
- ECPGfree(newcopy);
-
*tobeinserted_p = mallocedval;
*malloced_p = true;
}
bool ECPGstore_result(const PGresult *results, int act_field,
const struct statement * stmt, struct variable * var);
bool ECPGstore_input(const int, const bool, const struct variable *, const char **, bool *);
-#if defined(__GNUC__) && (defined (__powerpc__) || defined(__AMD64__))
+#if defined(__GNUC__) && (defined (__powerpc__) || defined(__AMD64__) || defined(__x86_64__))
// work around a gcc/ABI bug with va_lists on ppc+amd64
void ECPGget_variable(va_list, enum ECPGttype, struct variable *, bool);
#else
-# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.48 2004/05/07 13:42:49 meskes Exp $
+# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.49 2005/06/02 12:35:11 meskes Exp $
subdir = src/interfaces/ecpg/test
top_builddir = ../../../..
ECPG = ../preproc/ecpg -I$(srcdir)/../include
TESTS = test1 test2 test3 test4 test5 perftest dyntest dyntest2 test_notice \
- test_code100 test_init testdynalloc num_test dt_test test_informix
+ test_code100 test_init testdynalloc num_test dt_test test_informix \
+ test_desc
ifeq ($(enable_thread_safety), yes)
TESTS += test_thread test_thread_implicit
endif