text: /* TEMPLATE GENERATED TESTCASE FILE
  Filename: CWE590_Free_Memory_Not_on_Heap__delete_int_alloca_81_bad.cpp
  Label Definition File: CWE590_Free_Memory_Not_on_Heap__delete.pointer.label.xml
  Template File: sources-sink-81_bad.tmpl.cpp
  */
  /*
   * @description
   * CWE: 590 Free Memory Not on Heap
   * BadSource: alloca Data buffer is allocated on the stack with alloca()
   * GoodSource: Allocate memory on the heap
   * Sinks:
   *    BadSink : Print then free data
   * Flow Variant: 81 Data flow: data passed in a parameter to a virtual method called via a reference
   *
   * */
  #ifndef OMITBAD
  
  #include "std_testcase.h"
  #include "CWE590_Free_Memory_Not_on_Heap__delete_int_alloca_81.h"
  
  namespace CWE590_Free_Memory_Not_on_Heap__delete_int_alloca_81
  {
  
  void CWE590_Free_Memory_Not_on_Heap__delete_int_alloca_81_bad::action(int * data) const
  {
      printIntLine(*data);
      /* POTENTIAL FLAW: Possibly deallocating memory allocated on the stack */
      delete data;
  }
  
  }
  #endif /* OMITBAD */
  