diff options
author | Michael Meskes <meskes@postgresql.org> | 2009-10-01 18:03:54 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2009-10-01 18:03:54 +0000 |
commit | fabf75cffc34b187aba57b0d3a086ebec586d016 (patch) | |
tree | f045af1fd4805299c63717606070eff553f852aa /src/interfaces/ecpg/compatlib | |
parent | f3aec2c7f51904e7920cd27115fdab831795d96b (diff) | |
download | postgresql-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.c | 4 |
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; } |