We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8964b41 commit 415b925Copy full SHA for 415b925
src/bin/psql/describe.c
@@ -3,7 +3,7 @@
3
*
4
* Copyright (c) 2000-2006, PostgreSQL Global Development Group
5
6
- * $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.147 2006/10/09 23:30:33 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.148 2006/11/08 01:22:55 neilc Exp $
7
*/
8
#include "postgres_fe.h"
9
#include "describe.h"
@@ -1171,7 +1171,14 @@ describeOneTableDetails(const char *schemaname,
1171
1172
result6 = PSQLexec(buf.data, false);
1173
if (!result6)
1174
+ {
1175
+ PQclear(result1);
1176
+ PQclear(result2);
1177
+ PQclear(result3);
1178
+ PQclear(result4);
1179
+ PQclear(result5);
1180
goto error_return;
1181
+ }
1182
else
1183
inherits_count = PQntuples(result6);
1184
0 commit comments