CWE: 775 Missing Release of File Descriptor or Handle After Effective Lifetime
BadSource: Open a file using fopen()
GoodSink: Close the file using fclose()
BadSink : Do not close file
Flow Variant: 82 Data flow: data passed in a parameter to an virtual method called via a pointer
Have any comments on this test case? Please, send us an email.