mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 13:52:22 +08:00
libc: fix assert "Free memory from the wrong heap" with flat mode and user separated heap enabled mode
In flat mode: kernel code, like net driver... strdup -> nx_strdup -> kmm_malloc lib_free -> kmm_free app code, like stdlib... strdup -> malloc free -> free Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
* then only the first mode is supported.
|
||||
*/
|
||||
|
||||
#if !defined(CONFIG_BUILD_FLAT) && defined(__KERNEL__)
|
||||
#if defined(__KERNEL__)
|
||||
|
||||
/* Domain-specific allocations */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user