Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Commit e36a438

Browse files
authored
Fix memory leak in Attribute::get_att_device_class() (#677)
1 parent 087588e commit e36a438

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cppapi/server/attribute.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5314,7 +5314,7 @@ DeviceClass *Attribute::get_att_device_class(string &dev_name)
53145314
// Check whether our device is listed in this class
53155315
for (size_t i = 0; i < dev_list.size(); ++i)
53165316
{
5317-
if (dev_list[i]->name() == dev_name)
5317+
if (dev_list[i]->get_name() == dev_name)
53185318
{
53195319
// Our device is listed in this class, returns the corresponding DeviceClass pointer
53205320
return tmp_cl_list[loop];

0 commit comments

Comments
 (0)