Index: src/bin/psql/describe.c =================================================================== RCS file: /projects/cvsroot/pgsql/src/bin/psql/describe.c,v retrieving revision 1.147 diff -c -r1.147 describe.c *** src/bin/psql/describe.c 9 Oct 2006 23:30:33 -0000 1.147 --- src/bin/psql/describe.c 7 Nov 2006 06:20:55 -0000 *************** *** 1171,1177 **** --- 1171,1184 ---- result6 = PSQLexec(buf.data, false); if (!result6) + { + PQclear(result1); + PQclear(result2); + PQclear(result3); + PQclear(result4); goto error_return; + } else inherits_count = PQntuples(result6);