summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/ecpglib/execute.c
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2005-06-02 12:50:30 +0000
committerMichael Meskes <meskes@postgresql.org>2005-06-02 12:50:30 +0000
commite0632407aa93047096ffe3dfe9374f0d0252b541 (patch)
treeab5e55d4f1b5bd2c40419d7b0ee5a416984d04e3 /src/interfaces/ecpg/ecpglib/execute.c
parent1891938e9c7765cb59515483576b2e07f508e385 (diff)
Fixed memory leak in ecpglib by adding some missing free() commands.
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/execute.c')
-rw-r--r--src/interfaces/ecpg/ecpglib/execute.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/interfaces/ecpg/ecpglib/execute.c b/src/interfaces/ecpg/ecpglib/execute.c
index 7dc477847ee..0d1b8edefb6 100644
--- a/src/interfaces/ecpg/ecpglib/execute.c
+++ b/src/interfaces/ecpg/ecpglib/execute.c
@@ -1,4 +1,4 @@
-/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.26.2.4 2004/01/28 09:55:53 meskes Exp $ */
+/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.26.2.5 2005/06/02 12:50:30 meskes Exp $ */
/*
* The aim is to get a simpler inteface to the database routines.
@@ -66,6 +66,7 @@ quote_postgres(char *arg, int lineno)
res[ri++] = '\'';
res[ri] = '\0';
+ ECPGfree(arg);
return res;
}
@@ -799,8 +800,6 @@ ECPGstore_input(const struct statement * stmt, const struct variable * var,
if (!mallocedval)
return false;
- ECPGfree(newcopy);
-
*tobeinserted_p = mallocedval;
*malloced_p = true;
}
@@ -835,8 +834,6 @@ ECPGstore_input(const struct statement * stmt, const struct variable * var,
if (!mallocedval)
return false;
- ECPGfree(newcopy);
-
*tobeinserted_p = mallocedval;
*malloced_p = true;
}