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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user