example/libtest: add malloc/free to libtest

So we can verify flags like kasan are effective or not.

Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
This commit is contained in:
xuxingliang
2024-10-15 10:58:02 +08:00
committed by Xiang Xiao
parent c4b6fd77be
commit 28c3c05c28
2 changed files with 14 additions and 3 deletions

View File

@@ -22,8 +22,7 @@
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#include <stdio.h>
#include <nuttx/compiler.h>
#include "libtest.h"
/****************************************************************************