diff options
author | Olly Betts <olly@survex.com> | 2021-04-21 17:04:10 +1200 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2021-04-21 18:16:08 +1200 |
commit | ac676d1a6c98c57a316842abeb92c5d4a8da8cb9 (patch) | |
tree | f3abc2da7865b86be6a103f63882488866139ee8 | |
parent | 508d9f727958c3cc1948585a82cdd2dd1c18f5d1 (diff) | |
download | swig-ac676d1a6c98c57a316842abeb92c5d4a8da8cb9.tar.gz |
Remove bogus zend_string_release() in magic methods
We shouldn't be freeing the property name here.
-rw-r--r-- | Source/Modules/php.cxx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Source/Modules/php.cxx b/Source/Modules/php.cxx index 7786fcda2..ae3ae0c93 100644 --- a/Source/Modules/php.cxx +++ b/Source/Modules/php.cxx @@ -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"); |