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