Opened 6 years ago

Last modified 8 months 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 Changed 6 years ago by neteler

Component: DefaultLibRaster

comment:2 Changed 4 years ago by martinl

Milestone: 7.0.07.0.5

comment:3 Changed 3 years ago by neteler

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

comment:4 Changed 3 years ago by neteler

Milestone: 7.0.57.0.6

comment:5 Changed 22 months ago by neteler

Milestone: 7.0.67.0.7

comment:6 Changed 8 months ago by martinl

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