X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-redboot.git;a=blobdiff_plain;f=packages%2Flanguage%2Fc%2Flibc%2Fstdio%2Fv2_0%2Fsrc%2Fcommon%2Ffclose.cxx;h=4eabb7c38345e223ad315d83298c443e1b507d83;hp=248bce0508b3c49bd284cc7668c8be1ef7fc8833;hb=7a4ea0a4d67744fd3f6b5f207d857005fc707b46;hpb=29ac1edaf5f12d706179ec87816ee1506ba4c9a1 diff --git a/packages/language/c/libc/stdio/v2_0/src/common/fclose.cxx b/packages/language/c/libc/stdio/v2_0/src/common/fclose.cxx index 248bce05..4eabb7c3 100644 --- a/packages/language/c/libc/stdio/v2_0/src/common/fclose.cxx +++ b/packages/language/c/libc/stdio/v2_0/src/common/fclose.cxx @@ -109,15 +109,11 @@ fclose( FILE *stream ) __THROW return EOF; } -#ifdef CYGFUN_INFRA_EMPTY_DELETE_FUNCTIONS // Explicitly call destructor - this flushes the output too real_stream->~Cyg_StdioStream(); // and free it free(real_stream); -#else - delete real_stream; -#endif // CYGFUN_INFRA_EMPTY_DELETE_FUNCTIONS // and mark the stream available for use Cyg_libc_stdio_files::set_file_stream(i, NULL);