Opened 11 years ago

Last modified 5 years ago

#2064 new defect

Memory leak in write_support_files()

Reported by: sprice Owned by: grass-dev@…
Priority: normal Milestone: 7.6.2
Component: LibRaster Version: unspecified
Keywords: Cc:
CPU: Unspecified Platform: Unspecified

Description

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

Change History (6)

comment:1 by neteler, 10 years ago

Component: DefaultLibRaster

comment:2 by martinl, 8 years ago

Milestone: 7.0.07.0.5

comment:3 by neteler, 8 years ago

Anyone able to check libraster for a potentially missing Rast_free_history()?

comment:4 by neteler, 8 years ago

Milestone: 7.0.57.0.6

comment:5 by neteler, 6 years ago

Milestone: 7.0.67.0.7

comment:6 by martinl, 5 years ago

Milestone: 7.0.77.6.2
Note: See TracTickets for help on using tickets.