text: /* TEMPLATE GENERATED TESTCASE FILE
  Filename: CWE401_Memory_Leak__char_calloc_82_goodB2G.cpp
  Label Definition File: CWE401_Memory_Leak.c.label.xml
  Template File: sources-sinks-82_goodB2G.tmpl.cpp
  */
  /*
   * @description
   * CWE: 401 Memory Leak
   * BadSource: calloc Allocate data using calloc()
   * GoodSource: Allocate data on the stack
   * Sinks:
   *    GoodSink: call free() on data
   *    BadSink : no deallocation of data
   * 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 "CWE401_Memory_Leak__char_calloc_82.h"
  
  namespace CWE401_Memory_Leak__char_calloc_82
  {
  
  void CWE401_Memory_Leak__char_calloc_82_goodB2G::action(char * data)
  {
      /* FIX: Deallocate memory */
      free(data);
  }
  
  }
  #endif /* OMITGOOD */
  