mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 04:00:28 +01:00
mimxrt,stm32: Enable MICROPY_PY_USSL_FINALISER.
This is needed because these ports allocate mbedtls data on the MicroPython heap, and SSL socket objects must be fully cleaned up when they are garbage collected, to free this memory allocated by mbedtls. As part of this, gc_sweep_all() will now ensure that the MP_STATE_PORT(mbedtls_memory) linked-list is fully deallocated on soft reset. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -91,6 +91,7 @@
|
||||
#endif
|
||||
|
||||
// extended modules
|
||||
#define MICROPY_PY_USSL_FINALISER (MICROPY_PY_USSL)
|
||||
#define MICROPY_PY_UHASHLIB_MD5 (MICROPY_PY_USSL)
|
||||
#define MICROPY_PY_UHASHLIB_SHA1 (MICROPY_PY_USSL)
|
||||
#define MICROPY_PY_UCRYPTOLIB (MICROPY_PY_USSL)
|
||||
|
||||
Reference in New Issue
Block a user