Skip to content

Commit 2c05db3

Browse files
committed
Merge branch 'PHP-8.3'
* PHP-8.3: Fix memory leak with failed SQLPrepare
2 parents 4dea42a + 508e70a commit 2c05db3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)