We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 132e915 commit 7ef04b2Copy full SHA for 7ef04b2
src/bin/psql/psql.c
@@ -7,7 +7,7 @@
7
*
8
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.15 1996/07/31 02:11:23 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.16 1996/08/06 00:40:12 julian Exp $
11
12
*-------------------------------------------------------------------------
13
*/
@@ -1064,10 +1064,14 @@ MainLoop(PsqlSettings *settings, FILE *source)
1064
slashCmdStatus = HandleSlashCmds(settings,
1065
line,
1066
query);
1067
- if (slashCmdStatus == 1)
+ if (slashCmdStatus == 1) {
1068
+ free(line);
1069
continue;
- if (slashCmdStatus == 2)
1070
+ }
1071
+ if (slashCmdStatus == 2) {
1072
1073
break;
1074
1075
if (slashCmdStatus == 0)
1076
sendQuery = 1;
1077
}
0 commit comments