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

This commit is contained in:
Dmitry Stogov committed 2005-06-07 15:38:37 +00:00
1 parent 7de57d1a0f
commit bfbbf5cedc
1 file changed
+3
+3
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)) {