mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
Fixed memory allocation bugs. Probably this patch should fix bug #31725.
This commit is contained in:
parent
7e8bd05c89
commit
84392e5e7f
@ -1205,6 +1205,7 @@ PHP_FUNCTION(sqlite_popen)
|
||||
}
|
||||
if (errmsg) {
|
||||
zval_dtor(errmsg);
|
||||
ZVAL_NULL(errmsg);
|
||||
}
|
||||
|
||||
if (strncmp(filename, ":memory:", sizeof(":memory:") - 1)) {
|
||||
@ -1280,6 +1281,7 @@ PHP_FUNCTION(sqlite_open)
|
||||
}
|
||||
if (errmsg) {
|
||||
zval_dtor(errmsg);
|
||||
ZVAL_NULL(errmsg);
|
||||
}
|
||||
|
||||
if (strncmp(filename, ":memory:", sizeof(":memory:") - 1)) {
|
||||
@ -1334,6 +1336,7 @@ PHP_FUNCTION(sqlite_factory)
|
||||
}
|
||||
if (errmsg) {
|
||||
zval_dtor(errmsg);
|
||||
ZVAL_NULL(errmsg);
|
||||
}
|
||||
|
||||
if (strncmp(filename, ":memory:", sizeof(":memory:") - 1)) {
|
||||
|
Loading…
Reference in New Issue
Block a user