driver: Fix memory leak in rtc_isr_deregister()

Closes #2179
This commit is contained in:
Darian Leung 2018-07-11 21:31:23 +08:00
parent 1b1477d16a
commit 882b50dd8c

View File

@ -1983,6 +1983,7 @@ esp_err_t rtc_isr_deregister(intr_handler_t handler, void* handler_arg)
SLIST_REMOVE_AFTER(prev, next); SLIST_REMOVE_AFTER(prev, next);
} }
found = true; found = true;
free(it);
break; break;
} }
prev = it; prev = it;