Skip to content

Commit 0829e07

Browse files
authored
free memory on detach (#8264)
1 parent ca7bcc0 commit 0829e07

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: cores/esp32/esp32-hal-ledc.c

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ static bool ledcDetachBus(void * bus){
6363
ledc_channel_handle_t handle = (ledc_channel_handle_t)bus;
6464
ledc_handle.used_channels &= ~(1UL << handle->channel);
6565
pinMatrixOutDetach(handle->pin, false, false);
66+
free(handle);
6667
return true;
6768
}
6869

0 commit comments

Comments
 (0)