#2063: Memory leak in Rast_read_color_rules() ?
-------------------------+--------------------------------------------------
Reporter: sprice | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: unspecified
Keywords: | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
I was looking for memory leaks in my program and I think I found one in
Rast_read_color_rules() (if I'm reading it correctly).
On line 224 you see G_realloc() called, but no calls to G_free() anywhere.
If I'm reading it correctly, you should insert G_free() at line 254 (or
later).
Replying to [ticket:2063 sprice]:
> I was looking for memory leaks in my program and I think I found one in
Rast_read_color_rules() (if I'm reading it correctly).