[Cgdb-devel] [ cgdb-Bugs-926068 ] CGDB Memory Leaks
                
                Brought to you by:
                
                    bobbybrasko,
                    
                
                    crouchingturbo
                    
                
            
            
        
        
        
    | 
     
      
      
      From: SourceForge.net <no...@so...> - 2004-03-30 16:02:33
      
     
   | 
Bugs item #926068, was opened at 2004-03-30 07:13 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=534974&aid=926068&group_id=72581 Category: CGDB Group: version 0.4.* Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: CGDB Memory Leaks Initial Comment: I was using CGDB to debug a program that outputs a lot of text onto stdout and I noticed CGDB's memory footprint growing pretty large (over 400 MB). So I fired up valgrind and tracked down what looks like a few minor memory leaks in cgdb/src/cgdb.c: In the functions child_input() and gdb_input() a char *buf is malloc'ed but doesn't appear to have the memory freed anywhere. I'm attaching my updated cgdb.c from the 0.4.0 source package. Thanks for your work on this great program. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=534974&aid=926068&group_id=72581  |