text: /* TEMPLATE GENERATED TESTCASE FILE
  Filename: CWE401_Memory_Leak__twoIntsStruct_realloc_83.h
  Label Definition File: CWE401_Memory_Leak.c.label.xml
  Template File: sources-sinks-83.tmpl.h
  */
  /*
   * @description
   * CWE: 401 Memory Leak
   * BadSource: realloc Allocate data using realloc()
   * GoodSource: Allocate data on the stack
   * Sinks:
   *    GoodSink: call free() on data
   *    BadSink : no deallocation of data
   * Flow Variant: 83 Data flow: data passed to class constructor and destructor by declaring the class object on the stack
   *
   * */
  
  #include "std_testcase.h"
  
  #include <wchar.h>
  
  namespace CWE401_Memory_Leak__twoIntsStruct_realloc_83
  {
  
  #ifndef OMITBAD
  
  class CWE401_Memory_Leak__twoIntsStruct_realloc_83_bad
  {
  public:
      CWE401_Memory_Leak__twoIntsStruct_realloc_83_bad(twoIntsStruct * dataCopy);
      ~CWE401_Memory_Leak__twoIntsStruct_realloc_83_bad();
  
  private:
      twoIntsStruct * data;
  };
  
  #endif /* OMITBAD */
  
  #ifndef OMITGOOD
  
  class CWE401_Memory_Leak__twoIntsStruct_realloc_83_goodG2B
  {
  public:
      CWE401_Memory_Leak__twoIntsStruct_realloc_83_goodG2B(twoIntsStruct * dataCopy);
      ~CWE401_Memory_Leak__twoIntsStruct_realloc_83_goodG2B();
  
  private:
      twoIntsStruct * data;
  };
  
  class CWE401_Memory_Leak__twoIntsStruct_realloc_83_goodB2G
  {
  public:
      CWE401_Memory_Leak__twoIntsStruct_realloc_83_goodB2G(twoIntsStruct * dataCopy);
      ~CWE401_Memory_Leak__twoIntsStruct_realloc_83_goodB2G();
  
  private:
      twoIntsStruct * data;
  };
  
  #endif /* OMITGOOD */
  
  }
  