#2064: Memory leak in write_support_files()
-------------------------+--------------------------------------------------
 Reporter:  sprice       |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  7.0.0                    
Component:  Default      |     Version:  unspecified              
 Keywords:               |    Platform:  Unspecified              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------
 write_support_files() calls Rast_short_history() & Rast_write_history().

 Rast_short_history() calls Rast_format_history() which calls G_vasprintf()
 which calls G_malloc(). But this memory is never freed after
 Rast_write_history().

 You should probably call Rast_free_history(), or
 G_free(hist->fields[HIST_KEYWRD]), at raster/close.c:191

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2064>
GRASS GIS <http://grass.osgeo.org>

_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to