Bug 334 - gperf leaks memory in Key_List class
Summary: gperf leaks memory in Key_List class
Status: ASSIGNED
Alias: None
Product: ACE
Classification: Unclassified
Component: ACE gperf (show other bugs)
Version: 5.0.4 (redundant
Hardware: All All
: P2 minor
Assignee: DOC Center Support List (internal)
URL:
Depends on:
Blocks:
 
Reported: 1999-09-19 20:29 CDT by Ossama Othman
Modified: 2000-05-24 12:31 CDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ossama Othman 1999-09-19 20:29:07 CDT
The Key_List class has several strings that are initialized with static
strings.  In the Key_List::output_types () method their contents are changed to
strings that were allocated on the heap.  Deallocation of these strings never
occurs, nor can it occur if the members contain static strings.

Suggested Solution:  Remove the evil statically vs. dynamically allocated
strings assignments, and stick with one type of allocation (most likely
dynamically allocated strings).
Comment 1 Ossama Othman 1999-09-27 11:15:59 CDT
Accepted, but I don't have time to look at this right now so hopefully someone
else does.
Comment 2 Ossama Othman 2000-03-08 19:30:59 CST
Fixed.  See the gperf ChangeLog entry (in the gperf ChangeLog not ACE).

ChangeLogTag:Wed Mar  8 17:26:22 2000  Ossama Othman  <ossama@uci.edu>
Comment 3 Ossama Othman 2000-03-09 00:03:59 CST
I introduced a regression.  The change has been reverted.
Comment 4 Ossama Othman 2000-03-09 00:04:59 CST
Mine again.
Comment 5 Ossama Othman 2000-03-09 00:04:59 CST
Not fixed yet.