Ignore:
Timestamp:
Nov 5, 2015, 4:41:37 PM (4 years ago)
Author:
nmedfort
Message:

Back up check in. Memory leaks should be fixed.

File:
1 edited

Legend:

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

    r4853 r4860  
    161161        try {
    162162            icgrep_IR = pablo_compiler.compile(function);
     163            delete function;
    163164            releaseSlabAllocatorMemory();
    164         }
    165         catch (std::runtime_error e) {
     165        } catch (std::runtime_error e) {
     166            delete function;
    166167            releaseSlabAllocatorMemory();
    167168            std::cerr << "Runtime error: " << e.what() << std::endl;
    168169            exit(1);
    169170        }
    170     }
    171     else {
     171    } else {
    172172        firstInputFile = 0;  // No regexp arguments; first positional argument is a file to process.
    173173        SMDiagnostic ParseErr;
Note: See TracChangeset for help on using the changeset viewer.