Skip to content

A potential bug of memory leak #26

@ash1852

Description

@ash1852

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions