diff --git a/src/UserData/UserDataCollectionValue.hpp b/src/UserData/UserDataCollectionValue.hpp index 8728036..32eda09 100644 --- a/src/UserData/UserDataCollectionValue.hpp +++ b/src/UserData/UserDataCollectionValue.hpp @@ -67,6 +67,7 @@ namespace Porygon::UserData { void SetIndexValue(const EvalValue *key, const EvalValue* value) const final{ _helper->Set(key, value); + delete value; } }; }