Simple test for the kernel memory leak detector

modulename: kmemleak-test.ko

configname: CONFIG_SAMPLE_KMEMLEAK

Linux Kernel Configuration
└─>Kernel hacking
└─>Sample kernel code
└─>Simple test for the kernel memory leak detector
In linux kernel since version 4.14.326 (release Date: 2023-09-23)  
Build a sample program which have explicitly leaks memory to test
kmemleak

source code:
depends
CONFIG_DEBUG_KMEMLEAK
CONFIG_MODULES
CONFIG_SAMPLES