aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/lib/ecpglib.c
diff options
context:
space:
mode:
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);