Commit e5a2ef47 by hlu1 Committed by Tianqi Chen

[Bugfix] Fix a memory leak in OpManager (#3263)

parent 584a32ae
......@@ -54,8 +54,8 @@ struct OpManager {
std::vector<PackedFunc*> frontend_funcs;
// get singleton of the op manager
static OpManager* Global() {
static OpManager inst;
return &inst;
static OpManager* inst = new OpManager();
return inst;
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment