micropython icon indicating copy to clipboard operation
micropython copied to clipboard

Timeout for sms_list and fixed memory leak

Open bokolob opened this issue 5 years ago • 4 comments

bokolob avatar Sep 01 '20 20:09 bokolob

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 call SMS.list twice in a row? The script won't be happy if you delete the first list it is using preventively.

pulkin avatar Sep 06 '20 23:09 pulkin

If you call list twice then pointer will be rewritten, but memory not freed. I suppose that gc cannot control pointers inside C code.

bokolob avatar Sep 07 '20 05:09 bokolob

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 ?

bokolob avatar Sep 07 '20 06:09 bokolob

Hello! Can we return to disscussing this issue?

bokolob avatar Nov 12 '20 07:11 bokolob