mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
Instances should not be freed in dtor()...
This commit is contained in:
parent
b86a4edeed
commit
b064810550
1 changed files with 4 additions and 2 deletions
|
@ -265,8 +265,7 @@ static int php_base64_filter_ctor(php_base64_filter *inst)
|
||||||
|
|
||||||
static void php_base64_filter_dtor(php_base64_filter *inst)
|
static void php_base64_filter_dtor(php_base64_filter *inst)
|
||||||
{
|
{
|
||||||
assert(inst != NULL);
|
/* do nothing */
|
||||||
efree(inst);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static size_t strfilter_base64_write(php_stream *stream, php_stream_filter *thisfilter,
|
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)
|
static void strfilter_base64_dtor(php_stream_filter *thisfilter TSRMLS_DC)
|
||||||
{
|
{
|
||||||
php_base64_filter_dtor((php_base64_filter *)thisfilter->abstract);
|
php_base64_filter_dtor((php_base64_filter *)thisfilter->abstract);
|
||||||
|
|
||||||
|
assert(thisfilter->abstract != NULL);
|
||||||
|
efree(thisfilter->abstract);
|
||||||
}
|
}
|
||||||
|
|
||||||
static php_stream_filter_ops strfilter_base64_ops = {
|
static php_stream_filter_ops strfilter_base64_ops = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue