diff options
author | Michael Meskes <meskes@postgresql.org> | 2006-06-26 09:20:09 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2006-06-26 09:20:09 +0000 |
commit | ea9ec780ed6353bb84c48ec49495d29173fd0eb1 (patch) | |
tree | cf2373cd6c9f525b5e26aaaa11c73ed2936ab26e /src/interfaces/ecpg/compatlib/informix.c | |
parent | bc28f58b8fe9b25d9b15dd3abc00ea7b72a98909 (diff) | |
download | postgresql-ea9ec780ed6353bb84c48ec49495d29173fd0eb1.tar.gz postgresql-ea9ec780ed6353bb84c48ec49495d29173fd0eb1.zip |
Added some more coverity report patches send in by Joachim Wieland <joe@mcknight.de>.
Diffstat (limited to 'src/interfaces/ecpg/compatlib/informix.c')
-rw-r--r-- | src/interfaces/ecpg/compatlib/informix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/compatlib/informix.c b/src/interfaces/ecpg/compatlib/informix.c index a9ec92448f3..65da37dcdee 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.45 2006/06/25 01:45:32 momjian Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/informix.c,v 1.46 2006/06/26 09:20:09 meskes Exp $ */ #include <stdlib.h> #include <string.h> @@ -417,6 +417,7 @@ dectoint(decimal *np, int *ip) } ret = PGTYPESnumeric_to_int(nres, ip); + PGTYPESnumeric_free(nres); if (ret == PGTYPES_NUM_OVERFLOW) ret = ECPG_INFORMIX_NUM_OVERFLOW; |