1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-05 07:21:24 +03:00

Applied patch by Boszormenyi Zoltan <zb@cybertec.at> to fix memory leak in decimal handling.

This commit is contained in:
Michael Meskes
2009-10-01 18:03:54 +00:00
parent f3aec2c7f5
commit fabf75cffc
3 changed files with 9 additions and 4 deletions

View File

@ -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;
}