Ignore:
Timestamp:
May 24, 2017, 12:06:43 PM (2 years ago)
Author:
nmedfort
Message:

Eliminated ExecutionEngine? memory leak. Intentionally broke compatibility with prior versions to ensure unchecked in projects are restructured.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/wc.cpp

    r5464 r5474  
    192192    iBuilder->CreateRetVoid();
    193193
    194     pxDriver.linkAndFinalize();
    195 }
    196 
    197 
    198 WordCountFunctionType wcCodeGen() {
    199     ParabixDriver pxDriver("wc");
    200     wcPipelineGen(pxDriver);
    201     return reinterpret_cast<WordCountFunctionType>(pxDriver.getPointerToMain());
     194    pxDriver.finalizeObject();
    202195}
    203196
     
    236229    }
    237230   
    238     WordCountFunctionType wordCountFunctionPtr = wcCodeGen();
     231    ParabixDriver pxDriver("wc");
     232    wcPipelineGen(pxDriver);
     233    auto wordCountFunctionPtr = reinterpret_cast<WordCountFunctionType>(pxDriver.getMain());
    239234
    240235    const auto fileCount = inputFiles.size();
Note: See TracChangeset for help on using the changeset viewer.