This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libstdc++/1660: memory leak in ostrstream



>Number:         1660
>Category:       libstdc++
>Synopsis:       memory leak in ostrstream
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 15 22:16:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     r.standish@unsw.edu.au
>Release:        Reading specs from /usr/logcc version 2.95 19990728
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
ostrstream does not delete everything it allocates. Run attached code snippet
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.cc"

I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2luY2x1ZGUgPHN0cnN0cmVh
bT4KCgptYWluKCkKewogIG9zdHJzdHJlYW0geDsKICB4IDw8IDEyMyA8PCAnXDAnOwogIC8vICBw
dXRzKHguc3RyKCkpOwogIHguZnJlZXplKDApOwp9CgojZGVmaW5lIFJlYWxsb2MgKGNoYXIqKXJl
YWxsb2MKCgp2b2lkICpvcGVyYXRvciBuZXcoc2l6ZV90IHMpCnsKICBjaGFyICpyOwogIHI9UmVh
bGxvYyhOVUxMLHMpOyAKICBwcmludGYoIm5ldzogJXhcbiIscik7CiAgcmV0dXJuIHI7Cn0KCnZv
aWQgb3BlcmF0b3IgZGVsZXRlKHZvaWQgKnApCnsKICBpZiAocCE9TlVMTCkgcHJpbnRmKCJkZWxl
dGU6ICV4XG4iLHApOwogIFJlYWxsb2MoKGNoYXIqKXAsMCk7Cn0K

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]