Remove bogus zend_string_release() in magic methods

We shouldn't be freeing the property name here.
This commit is contained in:
Olly Betts 2021-04-21 17:04:10 +12:00
commit ac676d1a6c

View file

@ -967,7 +967,6 @@ public:
Printf(f->code, "add_property_zval_ex(ZEND_THIS, ZSTR_VAL(arg2), ZSTR_LEN(arg2), &args[1]);\n}\n");
}
Printf(f->code, "zend_string_release(arg2);\n\n");
Printf(f->code, "thrown:\n");
Printf(f->code, "return;\n");
@ -1002,7 +1001,6 @@ public:
Printf(f->code, "RETVAL_NULL();\n}\n");
}
Printf(f->code, "zend_string_release(arg2);\n\n");
Printf(f->code, "thrown:\n");
Printf(f->code, "return;\n");
@ -1037,7 +1035,6 @@ public:
Printf(f->code, "RETVAL_FALSE;\n}\n");
}
Printf(f->code, "zend_string_release(arg2);\n\n");
Printf(f->code, "thrown:\n");
Printf(f->code, "return;\n");