aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/compatlib
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2009-10-01 18:03:54 +0000
committerMichael Meskes <meskes@postgresql.org>2009-10-01 18:03:54 +0000
commitfabf75cffc34b187aba57b0d3a086ebec586d016 (patch)
treef045af1fd4805299c63717606070eff553f852aa /src/interfaces/ecpg/compatlib
parentf3aec2c7f51904e7920cd27115fdab831795d96b (diff)
downloadpostgresql-fabf75cffc34b187aba57b0d3a086ebec586d016.tar.gz
postgresql-fabf75cffc34b187aba57b0d3a086ebec586d016.zip
Applied patch by Boszormenyi Zoltan <zb@cybertec.at> to fix memory leak in decimal handling.
Diffstat (limited to 'src/interfaces/ecpg/compatlib')
-rw-r--r--src/interfaces/ecpg/compatlib/informix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/compatlib/informix.c b/src/interfaces/ecpg/compatlib/informix.c
index 41ef2bfcccd..c4f1f18822f 100644
--- a/src/interfaces/ecpg/compatlib/informix.c
+++ b/src/interfaces/ecpg/compatlib/informix.c
@@ -1,4 +1,4 @@
-/* $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/informix.c,v 1.61 2009/09/03 09:59:20 meskes Exp $ */
+/* $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/informix.c,v 1.62 2009/10/01 18:03:54 meskes Exp $ */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
@@ -232,7 +232,7 @@ deccvasc(char *cp, int len, decimal *np)
{
int i = PGTYPESnumeric_to_decimal(result, np);
- free(result);
+ PGTYPESnumeric_free(result);
if (i != 0)
ret = ECPG_INFORMIX_NUM_OVERFLOW;
}