Closed sol0303 closed 7 months ago
at_socket_esp8266.c中,每调用一次esp8266_socket_send,都会调用at_obj_set_urc_table。at_obj_set_urc_table会通过rt_realloc反复申请内存。最终导致堆没有空间。
urc_table只增不减,是个严重问题。在socket_init中调一次就行了,没必要在send和listen函数中调用。
at_socket_esp8266.c中,每调用一次esp8266_socket_send,都会调用at_obj_set_urc_table。at_obj_set_urc_table会通过rt_realloc反复申请内存。最终导致堆没有空间。