From 17225c0d0aff23ae4d1eaa4758a5bdfa5d23347a Mon Sep 17 00:00:00 2001 From: Reynald Bourtembourg Date: Fri, 7 Feb 2020 14:53:48 +0100 Subject: [PATCH] Fix memory leak in Attribute::get_att_device_class() --- cppapi/server/attribute.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cppapi/server/attribute.cpp b/cppapi/server/attribute.cpp index 8c8e3a941..0c0f4b90a 100644 --- a/cppapi/server/attribute.cpp +++ b/cppapi/server/attribute.cpp @@ -5313,7 +5313,7 @@ DeviceClass *Attribute::get_att_device_class(std::string &dev_name) // Check whether our device is listed in this class for (size_t i = 0; i < dev_list.size(); ++i) { - if (dev_list[i]->name() == dev_name) + if (dev_list[i]->get_name() == dev_name) { // Our device is listed in this class, returns the corresponding DeviceClass pointer return tmp_cl_list[loop];