1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 09:42:22 +01:00

Fixed memory allocation bugs. Probably this patch should fix bug #31725.

This commit is contained in:
Dmitry Stogov
2005-06-07 15:38:37 +00:00
parent 7de57d1a0f
commit bfbbf5cedc

View File

@@ -1173,6 +1173,7 @@ PHP_FUNCTION(sqlite_popen)
}
if (errmsg) {
zval_dtor(errmsg);
ZVAL_NULL(errmsg);
}
if (strncmp(filename, ":memory:", sizeof(":memory:") - 1)) {
@@ -1248,6 +1249,7 @@ PHP_FUNCTION(sqlite_open)
}
if (errmsg) {
zval_dtor(errmsg);
ZVAL_NULL(errmsg);
}
if (strncmp(filename, ":memory:", sizeof(":memory:") - 1)) {
@@ -1302,6 +1304,7 @@ PHP_FUNCTION(sqlite_factory)
}
if (errmsg) {
zval_dtor(errmsg);
ZVAL_NULL(errmsg);
}
if (strncmp(filename, ":memory:", sizeof(":memory:") - 1)) {