File tree 2 files changed +22
-2
lines changed
2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 3
3
*
4
4
* Copyright 2000-2002 by PostgreSQL Global Development Group
5
5
*
6
- * $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.77 2003/05/28 16:03:59 tgl Exp $
6
+ * $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.78 2003/06/27 16:55:22 tgl Exp $
7
7
*/
8
8
#include "postgres_fe.h"
9
9
#include "describe.h"
@@ -963,7 +963,10 @@ describeOneTableDetails(const char *schemaname,
963
963
oid );
964
964
result2 = PSQLexec (buf .data , false);
965
965
if (!result2 )
966
+ {
967
+ PQclear (result1 );
966
968
goto error_return ;
969
+ }
967
970
else
968
971
check_count = PQntuples (result2 );
969
972
}
@@ -978,7 +981,11 @@ describeOneTableDetails(const char *schemaname,
978
981
oid );
979
982
result3 = PSQLexec (buf .data , false);
980
983
if (!result3 )
984
+ {
985
+ PQclear (result1 );
986
+ PQclear (result2 );
981
987
goto error_return ;
988
+ }
982
989
else
983
990
rule_count = PQntuples (result3 );
984
991
}
@@ -998,7 +1005,12 @@ describeOneTableDetails(const char *schemaname,
998
1005
oid );
999
1006
result4 = PSQLexec (buf .data , false);
1000
1007
if (!result4 )
1008
+ {
1009
+ PQclear (result1 );
1010
+ PQclear (result2 );
1011
+ PQclear (result3 );
1001
1012
goto error_return ;
1013
+ }
1002
1014
else
1003
1015
trigger_count = PQntuples (result4 );
1004
1016
}
@@ -1014,7 +1026,13 @@ describeOneTableDetails(const char *schemaname,
1014
1026
oid );
1015
1027
result5 = PSQLexec (buf .data , false);
1016
1028
if (!result5 )
1029
+ {
1030
+ PQclear (result1 );
1031
+ PQclear (result2 );
1032
+ PQclear (result3 );
1033
+ PQclear (result4 );
1017
1034
goto error_return ;
1035
+ }
1018
1036
else
1019
1037
foreignkey_count = PQntuples (result5 );
1020
1038
}
Original file line number Diff line number Diff line change 3
3
*
4
4
* Copyright 2000-2002 by PostgreSQL Global Development Group
5
5
*
6
- * $Header: /cvsroot/pgsql/src/bin/psql/large_obj.c,v 1.25 2003/04/18 23:38:47 tgl Exp $
6
+ * $Header: /cvsroot/pgsql/src/bin/psql/large_obj.c,v 1.26 2003/06/27 16:55:23 tgl Exp $
7
7
*/
8
8
#include "postgres_fe.h"
9
9
#include "large_obj.h"
@@ -78,6 +78,7 @@ handle_transaction(void)
78
78
}
79
79
80
80
PQsetNoticeProcessor (pset .db , old_notice_hook , NULL );
81
+ PQclear (res );
81
82
return true;
82
83
}
83
84
@@ -324,6 +325,7 @@ do_lo_unlink(const char *loid_arg)
324
325
}
325
326
return false;
326
327
}
328
+ PQclear (res );
327
329
}
328
330
329
331
if (own_transaction )
You can’t perform that action at this time.
0 commit comments