Skip to content

Commit

Permalink
Consider alloca in special in memLeak
Browse files Browse the repository at this point in the history
  • Loading branch information
karoliineh committed Jan 11, 2024
1 parent 7685f55 commit 1ec35c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/analyses/memLeak.ml
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ struct
match desc.special arglist with
| Malloc _
| Calloc _
| Realloc _ ->
| Realloc _
| Alloca _ ->
ctx.sideg () true;
begin match ctx.ask (Queries.AllocVar {on_stack = false}) with
| `Lifted var ->
Expand Down

0 comments on commit 1ec35c4

Please sign in to comment.