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 6.4 (release Date: 2023-06-25)  
Build a sample program which have explicitly leaks memory to test
kmemleak

source code:
depends
CONFIG_DEBUG_KMEMLEAK
CONFIG_MODULES
CONFIG_SAMPLES