Skip to content

Commit 60ac5b8

Browse files
committed
Get rid of double PQclear(res) in error path.
1 parent 273ae97 commit 60ac5b8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/bin/psql/describe.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000-2002 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.59 2002/08/10 03:56:24 tgl Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.60 2002/08/10 16:01:16 tgl Exp $
77
*/
88
#include "postgres_fe.h"
99
#include "describe.h"
@@ -714,11 +714,7 @@ describeOneTableDetails(const char *schemaname,
714714
printfPQExpBuffer(&buf, "SELECT pg_catalog.pg_get_viewdef('%s'::pg_catalog.oid)", oid);
715715
result = PSQLexec(buf.data);
716716
if (!result)
717-
{
718-
PQclear(res);
719-
PQclear(result);
720717
goto error_return;
721-
}
722718

723719
if (PQntuples(result) > 0)
724720
view_def = xstrdup(PQgetvalue(result, 0, 0));

0 commit comments

Comments
 (0)