mirror of
https://github.com/apache/nuttx.git
synced 2025-12-08 10:55:51 +08:00
The memory allocated with strdup and asprintf is done via lib_malloc so we need to use lib_free to deallocate memory otherwise the assertion "Free memory from the wrong heap" is hit with flat mode and user separated heap enabled mode. Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>