Skip to content

Commit 32ab261

Browse files
committed
Fix leak of FETCH_INTO object
1 parent 3d7959c commit 32ab261

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/pdo/pdo_stmt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2339,6 +2339,7 @@ static void free_statement(pdo_stmt_t *stmt)
23392339
}
23402340

23412341
if (!Z_ISUNDEF(stmt->fetch.into) && stmt->default_fetch_type == PDO_FETCH_INTO) {
2342+
zval_ptr_dtor(&stmt->fetch.into);
23422343
ZVAL_UNDEF(&stmt->fetch.into);
23432344
}
23442345

0 commit comments

Comments
 (0)