aboutsummaryrefslogtreecommitdiffhomepage
path: root/php/ext/google/protobuf/type_check.c
diff options
context:
space:
mode:
authorGravatar Bo Yang <teboring@google.com>2016-10-05 10:54:39 -0700
committerGravatar Bo Yang <teboring@google.com>2016-10-10 11:44:54 -0700
commit4f3d20a500e75ef47004986fece3db20ddeee43f (patch)
treec4fa543a4ebae98c3762270edf3c3c07211782ce /php/ext/google/protobuf/type_check.c
parent1e5d4ba9387362ece026e78148f4ac5881537e64 (diff)
Fix segmentation fault when ZTS is defined.
Diffstat (limited to 'php/ext/google/protobuf/type_check.c')
-rw-r--r--php/ext/google/protobuf/type_check.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/php/ext/google/protobuf/type_check.c b/php/ext/google/protobuf/type_check.c
index fe9359fc..c215d72e 100644
--- a/php/ext/google/protobuf/type_check.c
+++ b/php/ext/google/protobuf/type_check.c
@@ -214,7 +214,6 @@ bool protobuf_convert_to_bool(zval* from, int8_t* to) {
} else {
*to = 1;
}
- STR_FREE(strval);
} break;
default: {
zend_error(E_USER_ERROR, "Given value cannot be converted to bool.");