AP_HAL_Linux: fix leaking strings

This commit is contained in:
Lucas De Marchi 2016-11-07 15:53:53 -02:00
parent 3b022c837d
commit c1647b13eb

View File

@ -46,8 +46,10 @@ PWM_Sysfs_Base::~PWM_Sysfs_Base()
{
::close(_duty_cycle_fd);
free(_export_path);
free(_polarity_path);
free(_enable_path);
free(_duty_path);
free(_period_path);
}