Thread View: gnu.g++.lib.bug
1 messages
1 total messages
Started by Alan Shepherd
Mon, 20 Jul 1992 13:31
Memory leak in libg++2.1 and 2.2
Author: Alan Shepherd
Date: Mon, 20 Jul 1992 13:31
Date: Mon, 20 Jul 1992 13:31
17 lines
1080 bytes
1080 bytes
I think I have discovered a memory leak in libg++ in that the strstreambuf class allocated as part of istrstream's constructor is not deleted. istream::istream sets _flags to include dont_close and this means that _strbuf isn't deleted by ~istream and istrstream doesn't appear to have a destructor. Is this what you would expect ? I have a program which uses istrstreams and there is quite a large memory leak associated with its use. Alan Shepherd --------- Alan Shepherd, X-Tel Services Ltd., University Park, Nottingham NG7 2RD. Email: a.shepherd@xtel.co.uk, Phone: +44 (0) 602 412648 (Fax:790278) X.400: C=GB;ADMD= ;PRMD=X-Tel Services;O=X-Tel;S=Shepherd;G=Alan
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads