diff options
author | Michael Meskes <meskes@postgresql.org> | 2013-11-26 17:14:07 +0100 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2013-11-26 17:42:32 +0100 |
commit | db58e8ff7cec9a14418d6dccd33bbe186d10c1f4 (patch) | |
tree | 6ca9aac988c8f75df2fc157a9ffbf63c81efef13 /src/interfaces/ecpg/test/preproc/outofscope.pgc | |
parent | b46fa321003e4d07d881c2583eb1126e8fadabdc (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.pgc | 3 |
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; |