We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02664ae commit 37dc710Copy full SHA for 37dc710
ext/mysqli/mysqli.c
@@ -200,7 +200,9 @@ static void mysqli_objects_free_storage(zend_object *object)
200
mysqli_object *intern = php_mysqli_fetch_object(object);
201
MYSQLI_RESOURCE *my_res = (MYSQLI_RESOURCE *)intern->ptr;
202
203
- my_efree(my_res);
+ if (my_res) {
204
+ efree(my_res);
205
+ }
206
zend_object_std_dtor(&intern->zo);
207
}
208
/* }}} */
ext/mysqli/php_mysqli_structs.h
@@ -342,9 +342,6 @@ ZEND_END_MODULE_GLOBALS(mysqli)
342
ZEND_TSRMLS_CACHE_EXTERN()
343
#endif
344
345
-#define my_estrdup(x) (x) ? estrdup(x) : NULL
346
-#define my_efree(x) if (x) efree(x)
347
-
348
ZEND_EXTERN_MODULE_GLOBALS(mysqli)
349
350
#endif /* PHP_MYSQLI_STRUCTS.H */
0 commit comments