text: /* TEMPLATE GENERATED TESTCASE FILE
  Filename: CWE762_Mismatched_Memory_Management_Routines__delete_class_realloc_82_goodG2B.cpp
  Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml
  Template File: sources-sinks-82_goodG2B.tmpl.cpp
  */
  /*
   * @description
   * CWE: 762 Mismatched Memory Management Routines
   * BadSource: realloc Allocate data using realloc()
   * GoodSource: Allocate data using new
   * Sinks:
   *    GoodSink: Deallocate data using free()
   *    BadSink : Deallocate data using delete
   * Flow Variant: 82 Data flow: data passed in a parameter to an virtual method called via a pointer
   *
   * */
  #ifndef OMITGOOD
  
  #include "std_testcase.h"
  #include "CWE762_Mismatched_Memory_Management_Routines__delete_class_realloc_82.h"
  
  namespace CWE762_Mismatched_Memory_Management_Routines__delete_class_realloc_82
  {
  
  void CWE762_Mismatched_Memory_Management_Routines__delete_class_realloc_82_goodG2B::action(TwoIntsClass * data)
  {
      /* POTENTIAL FLAW: Deallocate memory using delete - the source memory allocation function may
       * require a call to free() to deallocate the memory */
      delete data;
  }
  
  }
  #endif /* OMITGOOD */
  