diff options
author | Dmitry Stogov <dmitry@zend.com> | 2018-05-08 17:30:15 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2018-05-08 17:30:15 +0300 |
commit | 524f5245c55223d36d1166554ca894fa77ea2dd1 (patch) | |
tree | aa7e6e9fa7f37afe6cd4b9a3c8ce8d919cd2f15d /ext/odbc/php_odbc.c | |
parent | 9565075cbd57f226c77745f5e7c915635680784c (diff) | |
download | php-git-524f5245c55223d36d1166554ca894fa77ea2dd1.tar.gz |
Avoid useless checks, using zend_string_efree(), in cases where the string is known to be a temporary allocated zend_string.
Diffstat (limited to 'ext/odbc/php_odbc.c')
-rw-r--r-- | ext/odbc/php_odbc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index 8675665444..fefb6d91b2 100644 --- a/ext/odbc/php_odbc.c +++ b/ext/odbc/php_odbc.c @@ -2193,15 +2193,15 @@ PHP_FUNCTION(odbc_result) if (rc == SQL_ERROR) { odbc_sql_error(result->conn_ptr, result->stmt, "SQLGetData"); - zend_string_free(field_str); + zend_string_efree(field_str); RETURN_FALSE; } if (result->values[field_ind].vallen == SQL_NULL_DATA) { - zend_string_free(field_str); + zend_string_efree(field_str); RETURN_NULL(); } else if (rc == SQL_NO_DATA_FOUND) { - zend_string_free(field_str); + zend_string_efree(field_str); RETURN_FALSE; } /* Reduce fieldlen by 1 if we have char data. One day we might |