Skip to content
Snippets Groups Projects
Commit c1647b13 authored by Lucas De Marchi's avatar Lucas De Marchi
Browse files

AP_HAL_Linux: fix leaking strings

parent 3b022c83
No related branches found
No related tags found
No related merge requests found
...@@ -46,8 +46,10 @@ PWM_Sysfs_Base::~PWM_Sysfs_Base() ...@@ -46,8 +46,10 @@ PWM_Sysfs_Base::~PWM_Sysfs_Base()
{ {
::close(_duty_cycle_fd); ::close(_duty_cycle_fd);
free(_export_path);
free(_polarity_path); free(_polarity_path);
free(_enable_path); free(_enable_path);
free(_duty_path);
free(_period_path); free(_period_path);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment