Fix memory leak

This commit is contained in:
Ben Gräf 2018-11-15 19:38:37 +01:00
parent 3b643ff510
commit 2dfcde48e4

View file

@ -595,7 +595,7 @@ std::string ClientStatus::toJsonString()
writer.SetMaxDecimalPlaces(10); writer.SetMaxDecimalPlaces(10);
respDocument.Accept(writer); respDocument.Accept(writer);
return strdup(buffer.GetString()); return buffer.GetString();
} }
void ClientStatus::clearGPUInfoList() void ClientStatus::clearGPUInfoList()