summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/ecpglib/descriptor.c
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2006-06-25 09:38:40 +0000
committerMichael Meskes <meskes@postgresql.org>2006-06-25 09:38:40 +0000
commit17bab8c3fe25607758ad8318908ce200f6c909b5 (patch)
tree49379ecedf3d28d6834aeca1afc115c448b90e17 /src/interfaces/ecpg/ecpglib/descriptor.c
parent885a4d3d9acdac41ca52c7ed2d358754549e0e97 (diff)
Moved some free() calls that coverity correctly complains about.
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/descriptor.c')
-rw-r--r--src/interfaces/ecpg/ecpglib/descriptor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/ecpglib/descriptor.c b/src/interfaces/ecpg/ecpglib/descriptor.c
index 19fd0173a3f..9a3086bdda7 100644
--- a/src/interfaces/ecpg/ecpglib/descriptor.c
+++ b/src/interfaces/ecpg/ecpglib/descriptor.c
@@ -1,6 +1,6 @@
/* dynamic SQL support routines
*
- * $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/descriptor.c,v 1.15 2006/06/21 10:24:40 meskes Exp $
+ * $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/descriptor.c,v 1.16 2006/06/25 09:38:39 meskes Exp $
*/
#define POSTGRES_ECPG_INTERNAL
@@ -349,7 +349,7 @@ ECPGget_desc(int lineno, const char *desc_name, int index,...)
return false;
}
/* allocate storage if needed */
- if (arrsize == 0 && var != NULL && *(void **) var == NULL)
+ if (arrsize == 0 && *(void **) var == NULL)
{
void *mem = (void *) ECPGalloc(offset * ntuples, lineno);
if (!mem)