Skip to content

Commit

Permalink
fix a nullptr dereference when creating AndersenSCD singleton instance
Browse files Browse the repository at this point in the history
  • Loading branch information
canliture committed Aug 30, 2023
1 parent 9a348cf commit a1cfc66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion svf/include/WPA/AndersenPWC.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class AndersenSCD : public Andersen
{
if (scdAndersen == nullptr)
{
new AndersenSCD(_pag);
scdAndersen = new AndersenSCD(_pag);
scdAndersen->analyze();
return scdAndersen;
}
Expand Down

0 comments on commit a1cfc66

Please sign in to comment.