Explorar o código

Merge branch 'bugfix/rtc_isr_deregister_memory_leak' into 'master'

bugfix/memory leak in rtc_isr_deregister

See merge request idf/esp-idf!2754
Angus Gratton %!s(int64=7) %!d(string=hai) anos
pai
achega
cfb3759635
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      components/driver/rtc_module.c

+ 1 - 0
components/driver/rtc_module.c

@@ -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;