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 c056b32 commit 175b003
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 @@ -55,7 +55,6 @@ struct
(* Check and warn if some of the allocated memory is not deallocated at program exit *)
match assert_exp_imprecise, exp with
| true, Some exp ->
set_mem_safety_flag InvalidMemTrack;
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
| _ ->
Expand Down

0 comments on commit 175b003

Please sign in to comment.