hdd_menu: fix c/p error

Origin commit data
------------------
Branch: ni/coolstream
Commit: aed22b3788
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-02-06 (Mon, 06 Feb 2017)

Origin message was:
------------------
- hdd_menu: fix c/p error

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-02-06 23:21:01 +01:00
parent 81014a595e
commit e18792ffbb

View File

@@ -1136,7 +1136,7 @@ int CHDDDestExec::exec(CMenuTarget* /*parent*/, const std::string&)
my_system(3, hdidle, "-i", to_string(sleep_seconds).c_str());
while (n--)
free(namelist[i]);
free(namelist[n]);
free(namelist);
return menu_return::RETURN_NONE;
}
@@ -1146,7 +1146,7 @@ int CHDDDestExec::exec(CMenuTarget* /*parent*/, const std::string&)
if (!have_hdparm)
{
while (n--)
free(namelist[i]);
free(namelist[n]);
free(namelist);
return menu_return::RETURN_NONE;
}