Tue, 14 Oct 2008 11:25:51 +0200
- Fixed parameter parsing.
+
+Sat, 25 Oct 2008 16:34:28 +0200
+
+ - Free allocated memory even if the next alloc failed with ENOMEM.
- Set pgtypes library version to 3.1.
- Set compat library version to 3.1.
- Set ecpg library version to 6.2.
-/* $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/informix.c,v 1.55 2008/05/16 15:20:03 petere Exp $ */
+/* $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/informix.c,v 1.56 2008/11/01 08:55:21 meskes Exp $ */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
fmtchar = ' ';
temp = (char *) malloc(fmt_len + 1);
+ if (!temp)
+ {
+ errno = ENOMEM;
+ return -1;
+ }
/* put all info about the long in a struct */
- if (!temp || initValue(lng_val) == -1)
+ if (initValue(lng_val) == -1)
{
+ free(temp);
errno = ENOMEM;
return -1;
}