aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/lib/ecpglib.c
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>1999-12-07 10:29:18 +0000
committerMichael Meskes <meskes@postgresql.org>1999-12-07 10:29:18 +0000
commit54847b25d4fe268cd46d9a9a166dbe6e971e5373 (patch)
treea0fd6ef67978abf55341af282ef1b751ff08bd47 /src/interfaces/ecpg/lib/ecpglib.c
parent04fa5ca5449c1efcd484b3a6ec891b299513cdfd (diff)
downloadpostgresql-54847b25d4fe268cd46d9a9a166dbe6e971e5373.tar.gz
postgresql-54847b25d4fe268cd46d9a9a166dbe6e971e5373.zip
*** empty log message ***
Diffstat (limited to 'src/interfaces/ecpg/lib/ecpglib.c')
-rw-r--r--src/interfaces/ecpg/lib/ecpglib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interfaces/ecpg/lib/ecpglib.c b/src/interfaces/ecpg/lib/ecpglib.c
index 2d16cb72471..2cb0e105479 100644
--- a/src/interfaces/ecpg/lib/ecpglib.c
+++ b/src/interfaces/ecpg/lib/ecpglib.c
@@ -515,6 +515,8 @@ ECPGexecute(struct statement * stmt)
return false;
strcat(mallocedval, tmp);
+ free(tmp);
+
strcat(mallocedval, "'");
free(newcopy);
@@ -556,6 +558,8 @@ ECPGexecute(struct statement * stmt)
return false;
strcat(mallocedval, tmp);
+ free(tmp);
+
strcat(mallocedval, "'");
free(newcopy);