Open bokolob opened 3 years ago
If you call list twice then pointer will be rewritten, but memory not freed. I suppose that gc cannot control pointers inside C code.
As I understand list isn’t used if pointer is not null. And I didn’t change this logic. Could you explain your point please ?
Hello! Can we return to disscussing this issue?
I do not quite understand what kind of memory leak you refer to.
sms_list_buffer
is inside the garbage-collected mpy heap so no need to delete it. Besides, what happens if you callSMS.list
twice in a row? The script won't be happy if you delete the first list it is using preventively.