mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
Don't use conn->net without checking if it is NULL, because
it can be NULL in OOM conditions. This would cause a crash.
This commit is contained in:
parent
0d468290be
commit
ce136a825c
1 changed files with 3 additions and 1 deletions
|
@ -125,7 +125,9 @@ MYSQLND_METHOD(mysqlnd_conn, free_contents)(MYSQLND * conn TSRMLS_DC)
|
|||
conn->current_result = NULL;
|
||||
}
|
||||
|
||||
conn->net->m.free_contents(conn->net TSRMLS_CC);
|
||||
if (conn->net) {
|
||||
conn->net->m.free_contents(conn->net TSRMLS_CC);
|
||||
}
|
||||
|
||||
DBG_INF("Freeing memory of members");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue