diff --git a/Framework/Core/include/Framework/Variant.h b/Framework/Core/include/Framework/Variant.h index b8be3a780547e..54e4b54be9606 100644 --- a/Framework/Core/include/Framework/Variant.h +++ b/Framework/Core/include/Framework/Variant.h @@ -285,7 +285,7 @@ struct variant_helper { template struct variant_helper { - static std::string get(const S* store) { return std::string(strdup(*reinterpret_cast(store))); } + static std::string get(const S* store) { return std::string(*reinterpret_cast(store)); } static void set(S* store, std::string value) { *reinterpret_cast(store) = strdup(value.data()); } };