Bug 334

Summary: gperf leaks memory in Key_List class
Product: ACE Reporter: Ossama Othman <ossama.othman>
Component: ACE gperfAssignee: DOC Center Support List (internal) <tao-support>
Status: ASSIGNED ---    
Severity: minor    
Priority: P2    
Version: 5.0.4 (redundant   
Hardware: All   
OS: All   

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.