text: /* TEMPLATE GENERATED TESTCASE FILE
  Filename: CWE401_Memory_Leak__new_int64_t_81_goodB2G.cpp
  Label Definition File: CWE401_Memory_Leak__new.label.xml
  Template File: sources-sinks-81_goodB2G.tmpl.cpp
  */
  /*
   * @description
   * CWE: 401 Memory Leak
   * BadSource:  Allocate data using new
   * GoodSource: Allocate data on the stack
   * Sinks:
   *    GoodSink: call delete on data
   *    BadSink : no deallocation of data
   * Flow Variant: 81 Data flow: data passed in a parameter to an virtual method called via a reference
   *
   * */
  #ifndef OMITGOOD
  
  #include "std_testcase.h"
  #include "CWE401_Memory_Leak__new_int64_t_81.h"
  
  namespace CWE401_Memory_Leak__new_int64_t_81
  {
  
  void CWE401_Memory_Leak__new_int64_t_81_goodB2G::action(int64_t * data) const
  {
      /* FIX: Deallocate memory */
      delete data;
  }
  
  }
  #endif /* OMITGOOD */
  