mirror of
https://github.com/apache/nuttx.git
synced 2026-05-10 23:40:21 +08:00
1b0baa8337
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>