Skip to content

Commit

Permalink
Don't set InvalidMemTrack flag a second time
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Schwarz <[email protected]>
  • Loading branch information
mrstanb and michael-schwarz authored Nov 8, 2023
1 parent 175b003 commit 05e4892
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/analyses/memLeak.ml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ struct
set_mem_safety_flag InvalidMemcleanup;
M.warn ~category:(Behavior (Undefined MemoryLeak)) ~tags:[CWE 401] "Assert expression %a is unknown. Memory leak might possibly occur for heap variables: %a" d_exp exp D.pretty allocated_mem
| _ ->
set_mem_safety_flag InvalidMemTrack;
set_mem_safety_flag InvalidMemcleanup;
M.warn ~category:(Behavior (Undefined MemoryLeak)) ~tags:[CWE 401] "Memory leak detected for heap variables: %a" D.pretty allocated_mem

Expand Down

0 comments on commit 05e4892

Please sign in to comment.