Skip to content

Commit

Permalink
修复graphllm的内存泄漏
Browse files Browse the repository at this point in the history
  • Loading branch information
黄宇扬 committed Sep 26, 2024
1 parent 7502e4c commit a6c6c43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ namespace fastllm {
for (auto &node : graph.nodes) {
if (allDatas.find(node.name) == allDatas.end()) {
allDatas[node.name] = new Data();
tempDatas[node.name] = allDatas[node.name];
}
}
Data emptyData;
Expand Down

0 comments on commit a6c6c43

Please sign in to comment.