Skip to content

Commit f2ad62b

Browse files
committed
pdo_pgsql: cleanup
set S->result to NULL after having freed it (not crucial now, as it is immediately recycled)
1 parent 217ea73 commit f2ad62b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/pdo_pgsql/pgsql_statement.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ static int pgsql_stmt_execute(pdo_stmt_t *stmt)
193193
/* it worked */
194194
S->is_prepared = 1;
195195
PQclear(S->result);
196+
S->result = NULL;
196197
break;
197198
default: {
198199
char *sqlstate = pdo_pgsql_sqlstate(S->result);

0 commit comments

Comments
 (0)