Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit60ac5b8

Browse files
committed
Get rid of double PQclear(res) in error path.
1 parent273ae97 commit60ac5b8

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/1003:56:24 tgl Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.60 2002/08/1016: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
gotoerror_return;
721-
}
722718

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp