mirror of
https://github.com/php/php-src.git
synced 2024-11-26 03:16:33 +08:00
Instances should not be freed in dtor()...
This commit is contained in:
parent
b86a4edeed
commit
b064810550
@ -265,8 +265,7 @@ static int php_base64_filter_ctor(php_base64_filter *inst)
|
||||
|
||||
static void php_base64_filter_dtor(php_base64_filter *inst)
|
||||
{
|
||||
assert(inst != NULL);
|
||||
efree(inst);
|
||||
/* do nothing */
|
||||
}
|
||||
|
||||
static size_t strfilter_base64_write(php_stream *stream, php_stream_filter *thisfilter,
|
||||
@ -448,6 +447,9 @@ static int strfilter_base64_eof(php_stream *stream, php_stream_filter *thisfilte
|
||||
static void strfilter_base64_dtor(php_stream_filter *thisfilter TSRMLS_DC)
|
||||
{
|
||||
php_base64_filter_dtor((php_base64_filter *)thisfilter->abstract);
|
||||
|
||||
assert(thisfilter->abstract != NULL);
|
||||
efree(thisfilter->abstract);
|
||||
}
|
||||
|
||||
static php_stream_filter_ops strfilter_base64_ops = {
|
||||
|
Loading…
Reference in New Issue
Block a user