Skip to content

Commit f5a1cb8

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 d95e222 commit f5a1cb8

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
@@ -198,6 +198,7 @@ static int pgsql_stmt_execute(pdo_stmt_t *stmt)
198198
/* it worked */
199199
S->is_prepared = 1;
200200
PQclear(S->result);
201+
S->result = NULL;
201202
break;
202203
default: {
203204
char *sqlstate = pdo_pgsql_sqlstate(S->result);

0 commit comments

Comments
 (0)