mirror of
https://github.com/nlohmann/json.git
synced 2025-07-10 22:00:59 +03:00
forgot to destroy object
This commit is contained in:
@ -500,6 +500,7 @@ class basic_json
|
||||
case (value_t::string):
|
||||
{
|
||||
Allocator<string_t> alloc;
|
||||
alloc.destroy(m_value.string);
|
||||
alloc.deallocate(m_value.string, 1);
|
||||
m_value.string = nullptr;
|
||||
|
||||
|
Reference in New Issue
Block a user