diff --git a/smartmontools/CHANGELOG b/smartmontools/CHANGELOG index 0cace3c0cb1a22a85d9810964af17f17b6655778..bad312df76812f739099b34f7bf1c0fca7bbe5a2 100644 --- a/smartmontools/CHANGELOG +++ b/smartmontools/CHANGELOG @@ -43,6 +43,8 @@ NOTES FOR FUTURE RELEASES: see TODO file. <DEVELOPERS: ADDITIONS TO THE CHANGE LOG GO JUST BELOW HERE, PLEASE> + [CF] Fix auto_ptr initialization in linux_scsi_device::autodetect_open(). + [CF] Remove duplicate function smart_device_list::add(). Replace calls with push_back(). diff --git a/smartmontools/os_linux.cpp b/smartmontools/os_linux.cpp index b7aa05d489abd23316fbce4c419ed9cfe38d3cce..7c485ffca4076aab343877b8c4bbe156da36308f 100644 --- a/smartmontools/os_linux.cpp +++ b/smartmontools/os_linux.cpp @@ -2689,8 +2689,7 @@ smart_device * linux_scsi_device::autodetect_open() //pout("Device %s: using '-d marvell' for ATA disk with Marvell driver\n", get_dev_name()); close(); smart_device_auto_ptr newdev( - new linux_marvell_device(smi(), get_dev_name(), get_req_type()), - this + new linux_marvell_device(smi(), get_dev_name(), get_req_type()) ); newdev->open(); // TODO: Can possibly pass open fd delete this;