-
Notifications
You must be signed in to change notification settings - Fork 20
Description
hello,I found a potential bug in source code,would you help me check if this bug is true?thank you very much.
==============================================================================
step 1 :
In file pccts/support/set/set.c , function set_pdq line 786 :
Allocate memory to q
step 2 :
In file pccts/support/set/set.c , function set_pdq line 787 :
Select the false branch at this point (q==null is false)
step 3 :
In file pccts/antlr/mrhoist.c , function MR_dumpRuleSet line 3016 :
Function set_pdq executes and stores the return value to cursor
step 4 :
In file pccts/antlr/mrhoist.c , function MR_dumpRuleSet line 3018 :
Select the true branch at this point (cursor!=null is true)
step 5 :
In file pccts/antlr/mrhoist.c , function MR_dumpRuleSet line 3020 :
Select the true branch at this point (RulePtr==null is true), the allocated memory is leaked