summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/test/preproc/outofscope.pgc
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2013-11-26 17:14:07 +0100
committerMichael Meskes <meskes@postgresql.org>2013-11-26 17:42:32 +0100
commitdb58e8ff7cec9a14418d6dccd33bbe186d10c1f4 (patch)
tree6ca9aac988c8f75df2fc157a9ffbf63c81efef13 /src/interfaces/ecpg/test/preproc/outofscope.pgc
parentb46fa321003e4d07d881c2583eb1126e8fadabdc (diff)
ECPG: Free the malloc()'ed variables in the test so it comes out clean on
Valgrind runs. Patch by Boszormenyi Zoltan <zb@cybertec.at>
Diffstat (limited to 'src/interfaces/ecpg/test/preproc/outofscope.pgc')
-rw-r--r--src/interfaces/ecpg/test/preproc/outofscope.pgc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interfaces/ecpg/test/preproc/outofscope.pgc b/src/interfaces/ecpg/test/preproc/outofscope.pgc
index 25efe75cca5..6b5d2707cef 100644
--- a/src/interfaces/ecpg/test/preproc/outofscope.pgc
+++ b/src/interfaces/ecpg/test/preproc/outofscope.pgc
@@ -111,6 +111,9 @@ main (void)
close_cur1();
+ free(myvar);
+ free(mynullvar);
+
strcpy(msg, "drop");
exec sql drop table a1;