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

This commit is contained in:
Dmitry Stogov 2005-06-07 15:39:35 +00:00
parent 7e8bd05c89
commit 84392e5e7f

View File

@ -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)) {