Merge pull request #2 from giuseppeM99/patch-1
Fix bad_alloc in get_memory_stats
This commit is contained in:
commit
ec5614fd43
@ -154,7 +154,8 @@ void MemoryManager::get_memory_stats(bool full, Promise<MemoryStats> promise) co
|
|||||||
|
|
||||||
output.push_back("}}");
|
output.push_back("}}");
|
||||||
|
|
||||||
string s = accumulate(output.begin(), output.end(), s);
|
string s;
|
||||||
|
s = accumulate(output.begin(), output.end(), s);
|
||||||
auto value = MemoryStats(s);
|
auto value = MemoryStats(s);
|
||||||
|
|
||||||
promise.set_value(std::move(value));
|
promise.set_value(std::move(value));
|
||||||
|
Loading…
Reference in New Issue
Block a user