Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
9939c435
Commit
9939c435
authored
25 years ago
by
Nathan Sidwell
Committed by
Nathan Sidwell
25 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* streambuf.h (ios::~ios): Use operator delete[] to remove _arrays.
From-SVN: r26691
parent
4c6eb8f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
+7
-1
libio/ChangeLog
+4
-0
libio/streambuf.h
+3
-1
No files found.
libio/ChangeLog
View file @
9939c435
1999-04-29 Nathan Sidwell <nathan@acm.org>
* streambuf.h (ios::~ios): Use operator delete[] to remove _arrays.
Mon Apr 12 19:22:44 1999 Mumit Khan <khan@xraylith.wisc.edu>
* filedoalloc.c (_POSIX_SOURCE): Remove definition.
...
...
This diff is collapsed.
Click to expand it.
libio/streambuf.h
View file @
9939c435
...
...
@@ -482,7 +482,9 @@ inline ios::~ios() {
#ifndef _IO_NEW_STREAMS
if
(
!
(
_flags
&
(
unsigned
int
)
ios
::
dont_close
))
delete
rdbuf
();
#endif
if
(
_arrays
)
delete
[]
_arrays
;
// It is safe to use naked operator delete[] as we know elements have no
// dtor, and g++ does not add a new[] cookie for such cases.
operator
delete
[]
(
_arrays
);
}
}
// extern "C++"
#endif
/* _STREAMBUF_H */
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment