Skip to content

Commit 508e70a

Browse files
committed
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Fix memory leak with failed SQLPrepare
2 parents c5fb8b6 + 30b550b commit 508e70a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ PHP NEWS
1111
. Fixed GH-12077 (PHP 8.3.0RC1 borked socket-close-on-exec.phpt).
1212
(Jakub Zelenka)
1313

14+
- ODBC:
15+
. Fixed memory leak with failed SQLPrepare. (NattyNarwhal)
16+
1417
- SPL:
1518
. Fixed bug GH-11972 (RecursiveCallbackFilterIterator regression in 8.1.18).
1619
(nielsdos)

ext/odbc/php_odbc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,7 @@ PHP_FUNCTION(odbc_prepare)
845845
break;
846846
default:
847847
odbc_sql_error(conn, result->stmt, "SQLPrepare");
848+
efree(result);
848849
RETURN_FALSE;
849850
}
850851

0 commit comments

Comments
 (0)